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 Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Current Process Running. coolbhai UNIX for Dummies Questions & Answers 4 01-17-2008 12:46 PM
current running process in shell moco Shell Programming and Scripting 1 04-11-2007 11:15 PM
Make sed ignore lines Scarlos Shell Programming and Scripting 2 07-21-2005 10:33 AM
to find current running process ranjkuma692 High Level Programming 2 03-07-2005 06:15 PM
signal in process communication a9711 High Level Programming 2 06-22-2002 08:16 PM

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 11-24-2003
stevensxiao stevensxiao is offline
Registered User
  
 

Join Date: Nov 2003
Location: BeiJing China
Posts: 4
how to make a current running process ignore SIGHUP signal?

I ask this question since sometimes i run a time-consuming ftp in foreground and forget to use nohup ftp.sh & to put this work background and can still running after i log off.
Assume this ftp task have run 1 hour, and still 1 hour time to end,
i don't want to abort the ftp, first, i use ctrl+Z and bg %% to put this process background, but how can i make this task still running after i log off just like nohup do?
  #2 (permalink)  
Old 11-24-2003
max_min max_min is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 10
Use the -p option for nohup. See the man page for nohup(1)
  #3 (permalink)  
Old 11-24-2003
stevensxiao stevensxiao is offline
Registered User
  
 

Join Date: Nov 2003
Location: BeiJing China
Posts: 4
Thanks for reply, but the -p option is only supported on SOLARIS 9 and not supported by most platform, like AIX, HPUX, even SOLARIS 8.
  #4 (permalink)  
Old 12-02-2003
linuxpenguin's Avatar
linuxpenguin linuxpenguin is offline Forum Advisor  
Registered User
  
 

Join Date: May 2002
Location: India
Posts: 295
what about writing a ftp daemon process.
your daemon will have 2 forks, (as per the standard daemon in stevens) the second child will exec your ftp program and before that it will catch the sighup or whatever signals you want.

Tell me if you need more help, this one interests me!
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 12:19 AM.


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