![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script Exection in Background | Krrishv | Shell Programming and Scripting | 4 | 01-07-2007 09:59 AM |
| how to run script at background | happyv | Shell Programming and Scripting | 4 | 09-22-2006 04:39 AM |
| Cannot submit a background job | tansha | Shell Programming and Scripting | 2 | 06-20-2006 06:58 AM |
| Script to submit a job with date parm in maestro | Kirojin | Shell Programming and Scripting | 1 | 03-21-2006 01:11 PM |
| Background shell script | Moofasa | Shell Programming and Scripting | 5 | 05-12-2005 06:23 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I submitted a ksh script in the background last night before leaving work:
./ping_test & When I came into work this morning I discovered that it had stopped running when my session timed out. So, I then tried it again this morning and logged out before letting it time out as one unix site suggested that. Same result. The script stopped running. I need this script to run until I manually kill it. Any ideas? I am using an AIX 4.3.3. Thanks. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Not an AIX guy, but I'd guess you just use nohup to tell the script not to die when you logout.
nohup scriptname.ksh & would do it in Solaris (what I know best). |
|
#3
|
|||
|
|||
|
Thanks man. That's it!
|
|
#4
|
||||
|
||||
|
maybe set the environment variable TMOUT to 0, and use nohup as rhfrommn suggested.
export TMOUT=0 |
|
#5
|
||||
|
||||
|
You can also check out a very cool and usefull program called screen.
It lets you start a new shell and then deattach it with ctrl+ad ... then you can logout.. then login again and just use screen -r to resume it.. You will have more control with screen than with nohup. (great for IRC-clients and stuff like that) /peter |
||||
| Google The UNIX and Linux Forums |