[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Cron-bug] cron is not workin well running a custom script on Slackware
From: |
sugar |
Subject: |
[Cron-bug] cron is not workin well running a custom script on Slackware 10.1... |
Date: |
Thu, 24 Aug 2006 16:35:21 -0700 (PDT) |
Hi, I tried scheduling this crontab as a roor or as a user called 'cuser'
this is the crontab (without quotes):
'27 15 * * * /home/cuser/custom-scripts/cron-backups.sh>/dev/null 2>&1'
Of course, the shell script has 775 permisions, weirdo thing is that the
command can be runned ok from the standar shell, but under cron it just
doesnt run... do you think it could be due the use of YYYY-MM-DD_HHMM input
switches on the 'rar' program or the '-mtime +365' argument used in find
command passed to the cron-backups.sh script?
This is the 'cron-backups.sh' shell script:
[code]
#!/bin/sh
#
find /mnt/usb-storage/MyCompany-SERVER-OM -type f -mtime +365 | xargs rm -f;
rar a -k -rr3%% -dh -m2 -y -pMyPassword -hpMyPassword -tk -o+ -t -ep1
-agYYYY-MM-DD_HHMM /mnt/usb-storage/MyCompany-SERVER-OM/OMBACKUP-
/mnt/mounted-nas1/OrderManager;
find /mnt/usb-storage/MyCompany-SERVER-QB -type f -mtime +365 | xargs rm -f;
rar a -k -rr3%% -dh -m2 -y -pMyPassword -hpMyPassword -tk -o+ -t -ep1
-agYYYY-MM-DD_HHMM /mnt/usb-storage/MyCompany-SERVER-QB/QBBACKUP-
/mnt/mounted-nas1/Shared/QBook;
cp -f -r -u /mnt/mounted-nas1/. /home/nas2/workware-mirror/;
find /mnt/usb-storage/MyCompany-SERVER-SNAPSHOT -type f -mtime +30 | xargs
rm -f;
rar a -k -v1900m -sv- -rr3%% -dh -m1 -y -pMyPassword -hpMyPassword -tk -o+
-ep1 -s -md512 -agYYYY-MM-DD_HHMM
/mnt/usb-storage/MyCompany-SERVER-SNAPSHOT/WORKWARE-SNP- /mnt/mounted-nas1;
find /mnt/usb-storage/POS-SERVER-MAINTENANCE -type f -mtime +90 | xargs rm
-f
[/code]
thanks in advance.
--
View this message in context:
http://www.nabble.com/cron-is-not-workin-well-running-a-custom-script-on-Slackware-10.1...-tf2161938.html#a5974935
Sent from the Gnu - Cron forum at Nabble.com.
- [Cron-bug] cron is not workin well running a custom script on Slackware 10.1...,
sugar <=