washy16
asked on
Crontab ignoring $(date +%F_%T) output filenaming
I'm trying to get cron to output to a file with the current date/time in it, but I'm getting EOF errors mailed to me. If I enter the full command on the command line, it works perfectly.
Here is an example to make it a bit clearer:
10 * * * * find / -perm -u=s 1> /root/$(date +%F_%T)_SUID
Any help would be greatly appreciated.
Thanks,
W.
Here is an example to make it a bit clearer:
10 * * * * find / -perm -u=s 1> /root/$(date +%F_%T)_SUID
Any help would be greatly appreciated.
Thanks,
W.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
typo in previous comment: would = worked :)
Thanks again!
Thanks again!
ASKER
@tintin: I read the man pages more than once. I can't beleive I missed that part. Thanks!