Search Results

Search: Posts Made By: g4v1n
3,964
Posted By Peasant
I would prefer cron job. If you use cron to run...
I would prefer cron job.
If you use cron to run every minute, there is no need for while loop.

Regarding LOCKFILE..
It is there for the sole purpose for a human to check what went wrong and,...
3,964
Posted By Peasant
No need to apologize, no one was born with...
No need to apologize, no one was born with linux/unix skills.

No need to use cmp
This is why we are using wget mirroring based on timestamps.
wget will know if something has changed and copy...
3,964
Posted By Peasant
Lockfile is used so the script will not run...
Lockfile is used so the script will not run multiple times, for instance from crontab.
IF you have this script in cron to run every 5 minutes, and the download lasts 7 minutes lockfile will prevent...
3,964
Posted By Peasant
Something like : #!/usr/bin/ksh ...
Something like :

#!/usr/bin/ksh
LOCKFILE=/path/to/lock/wget.lock
LOGFILE=/path/to/log/wget.log
DDIR=/path/to/destination
if [ -f $LOCKFILE ]; then
printf "%s\n" "Lock file exists on date...
Showing results 1 to 4 of 4

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