The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
origo-submit 0.1.1 (Default branch) iBot Software Releases - RSS News 0 05-17-2008 04:50 PM
cant submit anything congo Forum Support Area for Unregistered Users & Account Problems 1 10-21-2006 11:59 AM
How to submit cron jobs? siegfried Shell Programming and Scripting 4 04-21-2006 10:52 AM
submit a ksh script in background captainzeb Shell Programming and Scripting 4 11-08-2003 08:49 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-20-2006
Registered User
 

Join Date: May 2006
Posts: 23
Cannot submit a background job

Hi all,

I am currently facing a problem when i am submitting a script to run in the background to collect statistics round the clock on an AIX box. I don't have root authority nor can I set it in cron.

So when i submit the job, it runs fine, but won't let me signoff. It prompts me that "there are jobs running " and as soon as I signoff, the background job stops.

The simple script to collect filesystem utilisation over the last 24 hours is as follows:

#!/bin/ksh


rm fs24.out

export FS_CNT=1

while [ $FS_CNT -lt 25 ]
do
echo `date` | tee -a fs24.out
df -g | tee -a fs24.out
FS_CNT=` expr $FS_CNT + 1 `
sleep 3600
done



Any suggestion please.

Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 06-20-2006
grial's Avatar
El UNIX es como un toro
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531

call the script like this:
Code:
nohup script.sh &
Reply With Quote
  #3  
Old 06-20-2006
Registered User
 

Join Date: May 2006
Posts: 23
Thanks grial,

You did put me on the right track.

Warm regards
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:25 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0