LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2003, 09:45 PM   #1
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Running a program with multiple sessions


I'm currently using PuTTY to connect to my Slack 9.1 box via my laptop (same LAN). I'm wondering if there's any way I can run a program (say, SETI@Home or whatnot) and not have to have PuTTY maintain a connection; ie I can log in at a later time (remotely) and either check up on the status of the program or end it or whatnot.

Any suggestions? TIA
-- Poetics
 
Old 12-24-2003, 12:52 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Look up the man or info page for nohup. This command will run a program in the background, put stderr streams into a file (nohup.out) and allow you to logout. nohup stand for no HUP.
 
Old 12-24-2003, 03:06 AM   #3
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Original Poster
Rep: Reputation: 49
Thanks -- I'll try that this evening
 
Old 12-24-2003, 07:13 AM   #4
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Original Poster
Rep: Reputation: 49
Okay, I've started my process with nohup (requiring root), and logged out. Logged back in and I can't find the process to kill (making sure I could, should I want the process killed). "fg" doesn't work (tells me there's nothing in the background), and the output of "ps -aux" is pretty standard, with no mention of the program I started.

Ideas?
 
Old 12-24-2003, 07:54 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
look at "screen" it basically runs a virtual console you can connect and disconenct from at will.... like vnc for consoles.... ish.
 
Old 12-29-2003, 06:57 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
You will need to su to root after logging in again. Then if you ps aux | grep <program name> you should be able to find it. Maybe the process aborted at some point before you logged back in.
 
  


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
Keeping a program running between SSH sessions ark86 Linux - Newbie 2 10-01-2005 04:31 PM
Multiple Sessions? ttague Linux - Newbie 4 01-02-2005 11:00 AM
Multiple X sessions tw001_tw Slackware 9 05-31-2004 01:35 PM
Can't open multiple X sessions JasonSmead Linux - General 1 08-10-2003 03:35 PM
Multiple X sessions gluon Linux - General 1 09-29-2001 11:20 PM


All times are GMT -5. The time now is 08:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration