[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: command substitution in a crontab with SHELL=/bin/bash



On Fri, Feb 23, 2001 at 08:11:31PM -0900, Britton wrote:
> 
> I am trying to do approximately this in a crontab:
> 
> SHELL=/bin/bash
> 0 8 * * * prog >/tmp/$(date +%s).extension
> 
> and it doesn't work, the command never gets executed.  Backtick
> substitution doesn't work either.  An identical command with a fixed
> string in place of the $(date +%s) command substitution works perfectly.
> An identical command executed on the command line works perfectly.
> Anyone have any guesses as to what might be going on here?
I'll bet you forgot a newline at the end of your crontab!

Cu,
Sven 

-- 
Ich weiß nicht, wieso ihr euch so echauffiert. Die Warnung ist doch
wirklich deutlich zu lesen auf der Packung. Da steht in großen,
deutlichen Lettern: "Microsoft". NATÜRLICH funktioniert das nicht.
Mehr als warnen können sie euch nicht. [Fefe in de.alt.sysadmin.recovery]



Reply to: