LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 08: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-23-2003, 11:52 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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, 02: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, 06: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, 06:54 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 05:57 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:01 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