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