Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Alternative to variable...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Alternative to variable...
Authored by: Loren on Nov 22, '02 11:25:12AM

I couldn't get the CURRDATE variable to work. Always got an error.

But, instead of the variable, just using the follwoing format worked for me...

/bin/mkdir /Users/USERNAME/logs/`/bin/date +%m-%d-%y`

Also, when testing, I had to add /usr/bin/sudo to the beginning of each line, but that shouldn't happen when cron runs the job in the night.

Loren



[ Reply to This | # ]