Mailinglist Archive: opensuse (878 mails)

< Previous Next >
Re: [opensuse] How start a remote job and detach the session, and re-connect later?
Can you use screen? Something like -

vi /path/to/the/shell/script.sh
#!/bin/bash
/usr/bin/screen -dmS myScreenSessionName /path/to/command/to/start/in/Session.sh


and then call it via SSH -

/usr/bin/ssh -l username servername /path/to/that/shell/script.sh &


Then when you connect to the server later, you can do a `screen -r
myScreenSessionName`

Chris


"Carlos E. R." 09/11/13 1:20 PM >>>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Hi,

I have done this, but I don't remember how. :-o

I want to start an ssh session, start a command, get out, and later
connect again via ssh and pick up the still running program and output.

- --
Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iEYEARECAAYFAlIwtFYACgkQtTMYHG2NR9XphQCglOqvQR28TaT0XpPfdN7ZldIm
IB4AnR6zsCADkqRhRJfUjMYm4qNE/760
=RRu3
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx









--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References