In crontab I have a variable assignment similar to the followinf:
I usually work in bash so sh eccentricities are not well known to me. I have looked at the man pages for
Similarly, what is the correct method to interpolate the output from the
Code:
NOW = $(date -j "+%m-%d-%Y" )
Illegal variable name.
I usually work in bash so sh eccentricities are not well known to me. I have looked at the man pages for
sh
and tcsh
to check the correct syntax but nothing I try appears to work. What is the correct syntax? Similarly, what is the correct method to interpolate the output from the
date
utility into an echo
string expression inside cron
?
Last edited: