Quote:
dave@dave:~/Gigs$ date --version
date (GNU coreutils) 8.21
|
Ubuntu 15.04
Cron & crontab manuals show a date of 2010. Is this the latest versions?
Three weeks I have tried solutions I found on google, stackoverflow, WW3, ubuntu forums, linus questions and a bunch of other places. I've not found much dealing with cron and date, what I did find I evidently did not understand completely as a lot of it dealt with internal workings.
I'm not sure what question to ask. Can someone point me in the right direction?
TIA
Dave
At 11:00 pm I need to capture todays date and store it. At 3:30 am I will use this to remove expired files for a list.
Code:
# m h dom mon dow command
#works as expected
52 10 * * * mplayer ~/Music/Spanish_Mary.mp3
#works from the command line but not cron
48 23 * * * ~/bin/scrub_gig_list_time.sh
#scrub_gig_list_time.sh
##!/bin/bash
#create a date tag to scrub the giglist of expired events.
#date '+%m/%d/%Y' >> ~/Gigs/oldgigs
#echo "Done"
#Works from the command line but not cron
# I have tried botkh escaping and unescaping the '%' and '>' & '>>'
13 51 * * * /bin/date '+\%m/\%d/\%Y' >> gigstoeeraise