Hi everyone,
I am building a script that runs something on a server.
I was wondering, is it possible to launch it and just leave it
running aside, instead of it waiting until it is done. I would also
like to see the output of this command in a sepparate terminal
windows. How can I get it working like that.
puts `ssh xx@xx.com 'cd #{path}; ./#{run_long_script}'`
Any help appreaciated.
Ted.
···
--
Posted via http://www.ruby-forum.com/.
To keep things simple, I'd just use the GNU "screen" program and run
your script w/in a screen session. That way you don't need to do any
fancy coding and you get all the capabilities you mentioned:
···
On Sun, Nov 7, 2010 at 5:51 PM, Ted Flethuseo <flethuseo@gmail.com> wrote:
Hi everyone,
I am building a script that runs something on a server.
I was wondering, is it possible to launch it and just leave it
running aside, instead of it waiting until it is done. I would also
like to see the output of this command in a sepparate terminal
windows. How can I get it working like that.
puts `ssh xx@xx.com 'cd #{path}; ./#{run_long_script}'`
Any help appreaciated.
Ted.
--
Kendall Gifford
zettabyte@gmail.com