11.08.2012 16:55, Axb kirjoitti: > On 08/11/2012 03:47 PM, Jari Fredriksson wrote: >> 11.08.2012 16:44, Axb kirjoitti: >>> On 08/11/2012 03:40 PM, Jari Fredriksson wrote: >>>> >>>> My cron job ran the nightly job, while weekly was supposed to run. >>>> >>>> I just run the auto-mass-check.sh and I though it can somehow know >>>> when >>>> to swich to "weekly-mode". Apparently this is not the case, so I >>>> rescheduled a separate weekly job for saturday. >>>> >>>> I'm running now the weekly job, so I have two rsync results to corpus, >>>> and the weekly probably is too late to get into the results.. >>>> >>>> Sorry... but I really can't remember having scheduled separate jobs >>>> earlier, all scripts and scron jobs should have been moved as is >>>> from my >>>> earlier VM. >>> >>> It should switch over... >>> >>> shot in the dark: to run the weekly job script uses: >>> >>> >>> elif date -u |grep -q ^Sat; then >>> # If Saturday, run the weekly_mass_check >>> TYPE=weekly_mass_check >>> >>> if your "date" command produces output in other than english if won't >>> run weekely >>> >>> pls post your "date" output >>> >>> Alex >>> >>> >> >> Good catch! This box has finnish language default. I have to change it >> to english, I do not like mixed language command line anyway. >> >> Thanks! > > patting myself on the shoulder..... > > (reminder to myself: find a practical way to detect Sat in at least 2 > dozen languages) >
if (( 6 == `date '+%u'`)); then echo "Yay! Booze!" fi -- "Yes you can create hotkeys by the dozen if you like...." Husse Jun 16 2007
signature.asc
Description: OpenPGP digital signature
