![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Catching ctrl-C or ctrl-D | sendhilmani123 | Shell Programming and Scripting | 2 | 05-02-2006 06:02 PM |
| how to enable Ctrl + C in ksh | dradhzn | Shell Programming and Scripting | 0 | 05-01-2006 11:32 PM |
| Disable ctrl-c,ctrl-d,ctrl-d in ksh script | wtofu | AIX | 6 | 06-29-2005 05:41 PM |
| my ctrl+c doesn't work | yankee428 | UNIX for Dummies Questions & Answers | 3 | 06-02-2005 02:35 PM |
| Script ctrl+c | newtounix | UNIX for Dummies Questions & Answers | 1 | 03-19-2001 05:23 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Quote:
But then I don't know every flavour of Unix. Usually nohup is only executed on startup of a command given as argument but cannot attach to a running process. If you are running your job control in Bash then you could use the built-in disown command like Code:
$ echo $0 bash $ sleep 600 & [1] 5764 $ disown -h %1 Now you should be able to logout without the shell sending a SIGHUP to your disowned sleep job. May I refer you to man bash: Code:
disown [-ar] [-h] [jobspec ...]
Without options, each jobspec is removed from the table of
active jobs. If the -h option is given, each jobspec is not
removed from the table, but is marked so that SIGHUP is not sent
to the job if the shell receives a SIGHUP. If no jobspec is
present, and neither the -a nor the -r option is supplied, the
current job is used. If no jobspec is supplied, the -a option
means to remove or mark all jobs; the -r option without a job‐
spec argument restricts operation to running jobs. The return
value is 0 unless a jobspec does not specify a valid job.
|
|
|||||
|
here is the proc..
sleep 100 ctrl+z [1] + Stopped (SIGTSTP) sleep 100 ps PID TTY TIME CMD 598132 pts/3 0:00 sleep 100 2060484 pts/3 0:00 -ksh 2347048 pts/3 0:00 ps 2449582 pts/3 0:00 -ksh 3076200 pts/3 0:00 -ksh nohup -p 598132 fg %1 or bg %1 if this won't work change the OS |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|