Re: screen/remote apps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux