Re: screen/remote apps

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

 



On 22Jan2016 09:50, Markus Schönhaber <fedora-users@xxxxxxxxxxxxxxxxxxxxx> 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.

Yeah, ssh to remote host, start (or resume) a named screen session with the app started inside it.

I use tmux instead of screen when possible, and I have a helper script named "tm":

 https://bitbucket.org/cameron_simpson/css/src/tip/bin/tm

largely for local sessions, but it also aids using remote sessions. It has a "use-session-remote" operation which connects to a remote host and join (or create) a named session. For convenience, it will also recite a shell function namd "tm_remote" for accessing remote sessions, which I alias to "@":

 eval "$(tm recite-function-remote)"
 alias @=tm_remote

which lets me go:

 @ remote-host:SESSION_NAME

In case of disconnect, it remembers the last command, so to reconnect one just says:

 @

Cheers,
Cameron Simpson <cs@xxxxxxxxxx>
--
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