Rupert Heesom on Wed, 18 Apr 2001 16:40:12 -0400 |
On 18 Apr 2001 16:20:52 -0400, Walt Mankowski wrote: > On Wed, Apr 18, 2001 at 02:59:35PM -0400, Rupert Heesom wrote: > > > Crontab line: > > > */2 * * * * touch $(date +%a-%e-%m) > > After a little trial and error, I figured out that you need to escape > the %'s in the crontab line. When I tried this: > > */2 * * * * touch $(date +\%a-\%e-\%m) > > it created a file called "Wed-18-04" in my homedir. Thanks Walt. I tried it out; and it works for me as well!! Great! I'm not very good at trial & error yet. I have no reference points for what might or should work. (Well, not all the time). > > Don't know off the top of my head why the script solution didn't work. Yes, this is also bothering me, but if the crontab can handle complex lines, like I'm beginning to realise it can, then I don't need an external script. However it would be nice to get that part working as well. Tnx for the help. -- regs rupert ______________________________________________________________________ Philadelphia Linux Users Group - http://www.phillylinux.org Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|