This content has been marked as final.
Show 4 replies
-
1. Re: How to run forge script from shell script or maven ?
shadogray Nov 6, 2012 7:09 AM (in response to trepel)1 of 1 people found this helpfulI'm talking of Linux/*nix, on Windows similar may be possible.
I recently used the following one-liner:
~> echo -e "forge list-plugins \n exit" | forge
If the command sequence is longer you could write a script and echo the command into forge, like:
show_plugins.fsh:
forge list-plugins
exit
~> echo "run show_plugins.fsh" | forge
-
2. Re: How to run forge script from shell script or maven ?
trepel Nov 6, 2012 7:47 AM (in response to shadogray)Hi Thomas,
nice and quite simple idea, thank you very much for your quick response.
-
3. Re: How to run forge script from shell script or maven ?
gastaldi Nov 6, 2012 1:34 PM (in response to trepel)Have you tried the line below ?
forge -e "run file.fsh"
It should work.
-
4. Re: How to run forge script from shell script or maven ?
trepel Sep 23, 2013 11:01 AM (in response to gastaldi)This is it! Thank you George.
I marked your answer as correct because I think it describes best practice, Thomas' answer marked as helpful. Thanks guys.