On 01/22/2016 12:50 AM, Markus Schönhaber wrote:
Bruce, Fri, 22 Jan 2016 03:35:12 -0500:
Don't top-post!
ssh into the remote box and start screen there (screen has to be
installed on the remote box, obviously). Use the remote screen to start
the app.
So you're saying it's basically a 2 step process:
1) -ssh remote box start Screen (with starting attributes)
2) --ssh remote box "ScreenCmd --name appToRun"
something like this??
I'm not sure I understand what the above is supposed to mean.
What I meant is the following:
localbox$ ssh user@remotebox
(you're on the remotebox now)
remotebox$ screen yourapp
Or, if you don't want screen to terminate with your app, start screen
and the the app from inside screen.
Or you could:
ssh user@remotebox "/usr/bin/screen -S name-of-your-screen-session -d
-m command-you-want-to-run-inside-the-screen-session"
That would launch a detached screen session on the remote box that
runs "command-you-want-to-run-inside-the-screen-session" in a screen
session named "name-of-your-screen-session".
For example, I do that on a box to do a backup of some data. The "-S"
parameter I used was "adcorp-backup", and this is the result:
[root@brc3-r1 ~]# screen -ls
There is a screen on:
24708.adcorp-backup (Detached)
1 Socket in /var/run/screen/S-root.
Should I want to check on it, I can ssh to that box and
screen -r 24708.adcorp-backup
to re-attach to the session. Once I'm done prowling around, "ctrl-a d"
detaches me again and leaves the session running.
Hope that helps.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 -
- -
- I.R.S.: We've got what it takes to take what you've got! -
----------------------------------------------------------------------
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org