Created
October 10, 2011 00:26
-
-
Save slemarchand/1274412 to your computer and use it in GitHub Desktop.
Execute a shell command from Liferay control panel ("Server Administration -> Script") and get ouptut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def exec = { cmd -> def p = cmd.execute(); out.leftShift(new SequenceInputStream(p.getErr(), p.getIn())) } | |
exec('df -h -a -i -T') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment