Remote execution of a program

Raseel Bhagat raseelbhagat at gmail.com
Mon Sep 14 07:16:54 UTC 2009


On Sat, Sep 12, 2009 at 10:03 AM, Keith Clark <keithclark at k-wbookworm.com>wrote:

> On Sat, 2009-09-12 at 00:29 -0400, Steve Reilly wrote:
> > Jay Daniels wrote:
> >
> > > nohup?  I think that just keeps the process running after you logout,
> >
> > i thought thats what he said the way i read the post?
> >
> > > but if the gui is running remotely?  It didn't sound like that was what
> > > he wanted to do.  Sounded like he wanted the program to run or popup on
> > > the server side screen.
> >
> > if thats all he wanted to do he could use ssh -Y or ssh -X to have the
> > gui sent to him.  but he wanted to have it continue after he logged out.
> >  when you logout, that would kill the process
> >
> Steve,
>
> Exactly.  I want to start Transmission remotely and leave it running
> when I log out.  This may not be possible.
>
> Keith
>
>

I saw this thread a bit late.

The best and the easiest way to do this is to use  "screen" utility.
man screen.

Basically, you will have to ssh into the remote computer, fire screen ,
execute your GUI program, leave the screen session and logout.

$ssh -X <remote-machine>
$screen
$./<execute GUI program>
Press Ctrl-A Ctrl-D to leave the screen session
$exit (from the remote-machine

I use this all the time to log in to my development machine and fire up gvim
on several screen sessions.

Thanks,
Raseel.
http://raseel.in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090914/3b11a6ab/attachment.html>


More information about the ubuntu-users mailing list