Aug 6th, 2012, 12:33 PM
Ability to execute commands without loading entire shell?
This may sound like an odd request, but is there (or will there be) a way to use the shell to execute a command without having to go into the shell interface directly first? IE run it via a script say a cron or what not.
I have a tool that I wrote that works in a much more basic way like spring shell. However I would like to move it to Spring Shell but it won't do me any good if I can't execute a command off the command line without requiring the entire parser. When I am testing and working local I would love the interface to use to setup the commands and make sure they work. But when if I were to push it to production where everything is automated that interface would just get in the way.
Aug 23rd, 2012, 06:56 AM
You can use the --cmdfile command line options to execute a file that contains spring shell commands.
http://static.springsource.org/sprin...ll.html#d4e155 has some documentation on the command line options.
I don't know what you mean by IE running it via a script, but you can certainly use cron/quartz or another scheduler to execute a command that will run the shell and execute a script.
Aug 23rd, 2012, 04:28 PM
Actually that will work for my needs, since I can setup a set of commands to be run depending on the environment. Thanks!
Somehow I missed that in the documentation when I first went over it, so I apologize for that oversight.
Sep 20th, 2012, 06:48 AM
I don't know what you mean by IE managing it via a system, but you can certainly use cron/quartz or another scheduler to execute a management that will run the invest and execute a system.