running script remotely on a sepparate terminal

T

Ted Flethuseo

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 (e-mail address removed) 'cd #{path}; ./#{run_long_script}'`

Any help appreaciated.

Ted.
 
K

Kendall Gifford

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 (e-mail address removed) 'cd #{path}; ./#{run_long_script}'`

Any help appreaciated.

Ted.

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:
http://savannah.gnu.org/projects/screen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top