From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,1c988558d85d56e5 X-Google-Attributes: gidf8c9b,public X-Google-Thread: fee84,1c988558d85d56e5 X-Google-Attributes: gidfee84,public From: Paul A Sand Subject: Re: crontab: how to put date in archive filename? Date: 1999/09/27 Message-ID: <7snek4$qfr$1@tabloid.unh.edu>#1/1 X-Deja-AN: 529809649 References: <37EE90F5.C36D7B6A@midwest.net> X-Complaints-To: usenet@tabloid.unh.edu X-Trace: tabloid.unh.edu 938425796 27131 132.177.139.166 (27 Sep 1999 09:49:56 GMT) Organization: University of New Hampshire Reply-To: pas@unh.edu NNTP-Posting-Date: 27 Sep 1999 09:49:56 GMT Newsgroups: comp.unix.questions,comp.unix.osf.osf1 Steve Stoddard writes: >I want to use a crontab command to write daily archives to files having >the dates embedded in the filenames. A FAQ showed me how create such >files at the command prompt, as for example, 'touch home.total.`date >'+%m_%d_%y'`.pax' creates the file 'home.total.09_26_99.pax'. I cannot >get this same command to work in a crontab. The crontab itself is OK, >because 'touch filename' works. What am I doing wrong? I'm running >Tru64 UNIX 4.0E. Thanks! You need to put backslashes in front of the percent signs, or double quote them. This behavior is documented on the crontab(1) man page. -- -- Paul A. Sand | The Springsteen Disclaimer: -- University of New Hampshire | I ain't here on business, baby; -- pas@unh.edu | I'm only here for fun. -- http://pubpages.unh.edu/~pas |