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 and shell scripting languages 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 08:50 PM
cant submit anything congo Forum Support Area for Unregistered Users & Account Problems 1 10-21-2006 03:59 PM
How to submit cron jobs? siegfried Shell Programming and Scripting 4 04-21-2006 02:52 PM
submit a ksh script in background captainzeb Shell Programming and Scripting 4 11-08-2003 11:49 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-20-2006
tansha tansha is offline
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
  #2 (permalink)  
Old 06-20-2006
grial's Avatar
grial grial is offline Forum Advisor  
El UNIX es como un toro
  
 

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

call the script like this:
Code:
nohup script.sh &
  #3 (permalink)  
Old 06-20-2006
tansha tansha is offline
Registered User
  
 

Join Date: May 2006
Posts: 23
Thanks grial,

You did put me on the right track.

Warm regards
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 10:45 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