Search Results

Search: Posts Made By: shaal89
4,052
Posted By methyl
Remember that you are running from a root cron. ...
Remember that you are running from a root cron.
When running from cron the current working directory is "/".

You probably need a "cd" at the start of the script, for example:

cd /ask/tarballs...
4,168
Posted By itkamaraj
try this.. size=`du -sh` size=`echo...
try this..


size=`du -sh`
size=`echo $size | sed 's/.$//'`
size1='30'
if [ $size -gt $size1 ]
then
echo "size greater"
else
echo "size smaller"
fi
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 02:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy