On Thu, Jun 23, 2005 at 05:56:31PM CDT, Marley Graham <mgraham at aquaflo.com> wrote: : : I put in the full path, but I still get the same error; crontab : doesn't seem to like the parentheses in the $(/bin/date +%r) command. Try putting the format within some quotes, e.g. $(/bin/date "+%r"). : I decided to try another approach. I created a script to get the date : format that I really want (hh:mm:ss): : : $ cat exacttime : #!/bin/bash : date +%r > tempdate : awk '{print $1}' tempdate : rm tempdate : exit : : and another script to call screencapture and append the time to the : name of the resultant file: : : $ cat screenpictimed : #!/bin/bash : screencapture mg$(/users/marleygraham/exacttime) : exit : : which produces a file like: : : mg04:25:59 : : I know it is not elegant scripting, but it should get the job done. Or avoid the extra fork (awk, rm, etc.) processes, and do everything within your screenpictimed script? #!/bin/bash screencapture mg$(/bin/date "+%I:%M:%S") exit -- Eugene http://www.coxar.pwp.blueyonder.co.uk/