The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Setting up a Dial Up connection on Solaris 10 bones SUN Solaris 4 02-01-2008 03:12 AM
Unix + Dial-up = ??? slade UNIX for Dummies Questions & Answers 1 09-26-2006 07:25 AM
Dial-Out & Dial-In Connections in OpenServer 5.0.6. thecobolguy SCO 1 04-28-2005 07:43 AM
Dial-Up Modem Synbios UNIX for Dummies Questions & Answers 0 09-26-2004 08:40 PM
Dial Up Server on RH 7.1 KrazyGuyPaul UNIX for Dummies Questions & Answers 2 09-19-2002 05:46 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-02-2004
vegas503 vegas503 is offline
Registered User
  
 

Join Date: Aug 2004
Posts: 3
Lightbulb Dial-up connection

Hi all.
I am running a C++ program on UNIX which needs days to finish but my dial-up connection disconnects after 4 hours. Is there any way for the program to keep running until it finishes after I log out?
  #2 (permalink)  
Old 08-02-2004
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,717
I'm not sure what you need. If your connection terminates, then it's a problem with your dialup.

Otherwise try nohup
Code:
nohup /path/to/my/program parm1 &
This runs in the background and will not disconnect when you logout
  #3 (permalink)  
Old 08-02-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
It could be a limit imposed by the ISP. I use Freeserve here in the UK, and it cuts you off after 2 hours, no questions (even though I have "unlimited unmetered access" pfffftttt . A right pain in the proverbial, to be polite.

Cheers
ZB
  #4 (permalink)  
Old 08-03-2004
vegas503 vegas503 is offline
Registered User
  
 

Join Date: Aug 2004
Posts: 3
Yes, it's a time limit imposed by British Telecom.
Nohup, worked. Thanks a lot Jim.
However, when I type "jobs" to see which processes are running in the background I don't get any jobs at all, although I know my program is still running, as the output file is steadily increasing. As a result I can't stop it if I want to. Does anyone know why this is happening?

Last edited by vegas503; 08-03-2004 at 09:06 AM..
  #5 (permalink)  
Old 08-03-2004
PSC PSC is offline
Registered User
  
 

Join Date: Jul 2004
Posts: 16
If you mean you can't find the process after you get disconnected and come back, I believe it's because the process is no longer yours. When you hang up, I think root becomes the parent to your process. I'm not sure if you can regain control of that process, but you can probably look for it by:

ps -aef | grep <process_name>
  #6 (permalink)  
Old 08-03-2004
vegas503 vegas503 is offline
Registered User
  
 

Join Date: Aug 2004
Posts: 3
Thank you, that works. When I type it I get
[username] 4159 1 14 [time started] ? 1260:50 [process]
Does anyone know how to stop this process?

Last edited by vegas503; 08-04-2004 at 12:31 PM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:54 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0