LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-21-2011, 03:56 PM   #1
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Rep: Reputation: Disabled
is it possible to keep pan instance keep running remotely ssh


hey guys im wondering is it possible to run for instance pan remotely via ssh and make that instance of pan running on server, regardless upon closing it via ssh?

for example i would love to do: start pan instance via ssh on the server keep it open while downloading close the ssh session, keep the pan running on the server in background. open ssh session and access the same instance of pan running on the server etc something in that loop.

im unable to do that because when i close pan ssh remotely the instance automatically terminates on the server.

so im wondering if theres any workaround for this?

thanks alot
 
Old 02-21-2011, 04:00 PM   #2
kforbus
Member
 
Registered: Sep 2009
Location: Maryland
Distribution: Slackware
Posts: 68

Rep: Reputation: 29
It sounds like you're looking for something like screen (check the man pages). You can login using ssh, run screen to start a session. The next time you connect via ssh you can use "screen -r" to resume that session.
 
Old 02-21-2011, 04:04 PM   #3
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
You might want to check out the screen command. Visit the two links below for an explaination and usage.

http://www.linux.com/archive/feed/56443

http://www.linux.com/learn/tutorials...th-gnu-screen-
 
1 members found this post helpful.
Old 02-21-2011, 04:14 PM   #4
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Original Poster
Rep: Reputation: Disabled
ive tried screen in this way:

Code:
screen
then
Code:
pan&
this opens pan instance on my computer remotely then ive tried ctrl+a+d to detach it, and it says detached, then i closed the instance which popped up on my screen locally when i started the instance via ssh and instance instantly terminates on the server when i do screen -r

i want that when i close the instance locally that it still will run on the server and when i do screen -r that i still will be able to access running instance and get that same instance again on my screen locally.

is that possible via screen? if so im wondering what i have done wrong?
 
Old 02-21-2011, 04:19 PM   #5
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 70
Try not running pan in background mode.

Run the following
Code:
screen
pan
cntrl - a - d :to detach
Close out ssh connection. Then verify come back in, use screen -ls to show screen sessions that are available. If there's only one, then use screen -R to open it. pan should be running.
 
Old 02-21-2011, 04:44 PM   #6
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by trist007 View Post
Try not running pan in background mode.

Run the following
Code:
screen
pan
cntrl - a - d :to detach
Close out ssh connection. Then verify come back in, use screen -ls to show screen sessions that are available. If there's only one, then use screen -R to open it. pan should be running.
it dosent want to close ssh session untill i close pan window locally first
 
Old 02-22-2011, 03:25 PM   #7
Ramurd
Member
 
Registered: Mar 2009
Location: Rotterdam, the Netherlands
Distribution: Slackwarelinux
Posts: 715

Rep: Reputation: 112Reputation: 112
so: pan is an X application? In that case you may want to check into some remote desktop stuff like VNC or noFX. With that you can create remote desktops and connect to them again. Security and performance wise I'd suggest looking into nofx, although it's a bit harder to setup than vnc.
 
Old 02-22-2011, 04:02 PM   #8
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Look at the output from
Code:
pan --help
No man page unfortunately. You may want to specify your options on the command-line and use --no-gui.
 
Old 02-25-2011, 08:54 AM   #9
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Original Poster
Rep: Reputation: Disabled
thanks guys! Even vnc or xmove would suffice for X apps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running gui apps remotely with KDE4 and ssh -X. jschiwal Linux - Desktop 0 02-06-2010 01:42 PM
Running multiple commands remotely via SSH in a script gimpy530 Linux - General 4 12-19-2009 10:22 PM
xen: Running Firefox remotely via ssh -X actually runs locally. ordinary Linux - Networking 9 02-27-2008 10:02 AM
Access Denied when I try to login remotely to my SSH server running on Cygwin. andrew_cz General 0 05-02-2006 09:46 AM
Running a shell script remotely via 'ssh <hostname> <command>' davee Linux - General 4 10-09-2005 01:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration