tag:blogger.com,1999:blog-11593374.post3267906521203827155..comments2024-03-22T08:46:57.166+00:00Comments on Andrew Beacock's Blog: Having cron troubles with percent (%) signs in crontabs?Andrew Beacockhttp://www.blogger.com/profile/01039992884679308726noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-11593374.post-45548636567120953032007-09-10T22:15:00.000+01:002007-09-10T22:15:00.000+01:00Now that is a nice looking command line... ;)Now that is a nice looking command line... ;)Andrew Beacockhttps://www.blogger.com/profile/01039992884679308726noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-6968253920703831552007-09-10T22:05:00.000+01:002007-09-10T22:05:00.000+01:00I ran into the same problem. The documentation for...I ran into the same problem. The documentation for SuSE 9.2, Centos 4.x & RedHat 4.x do mention this:<BR/><BR/><I>Percent-signs (%) in the command, unless escaped with backslash (\), will be changed into newline characters, and all data after the first % will be sent to the command as standard input.<BR/></I><BR/><BR/>Of course, now if I want to cut & paste the crontab command to the commandline, I end up with a fugly logfile:<BR/><BR/>/var/tmp/logfile.\2007\09\10 <BR/><BR/>Bah! A dozen commandline programs use '%' as a placeholder. Why can't cron play nicely!Anonymoushttps://www.blogger.com/profile/11289196586272070210noreply@blogger.com