home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.shell:5058 comp.unix.questions:14678 comp.unix.admin:6627
- Newsgroups: comp.unix.shell,comp.unix.questions,comp.unix.admin
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsc!cbfsb!cbnewsb.cb.att.com!stevez
- From: stevez@cbnewsb.cb.att.com (steven.a.zubatkin)
- Subject: Re: crontab problem executing this command!
- Message-ID: <1992Dec14.165915.13609@cbfsb.cb.att.com>
- Sender: news@cbfsb.cb.att.com
- Organization: AT&T
- References: <EJH.92Dec10164940@khonshu.colorado.edu>
- Date: Mon, 14 Dec 1992 16:59:15 GMT
- Lines: 23
-
- From article <EJH.92Dec10164940@khonshu.colorado.edu>, by ejh@khonshu.colorado.edu (Edward J. Hartnett):
- >
- > Hi! I have a command in a crontab file which is supposed to
- > periodically copy a mail file (containing my outgoing mail) into a
- > datestamped file. Here's what I see when I type crontab -e
- >
- > 59 11 * * 6 cp /home/khonshu/sjsk/.outgoing.record /home/khonshu/sjsk/msgs/mailout.`date '+%y%m%d'`
- >
- > Which I expected to copy my .outgoing.record to mailout.921205 last
- > Saturday morning. But instead I got a copy to mailout. with no date.
- > Can anyone tell me what I'm doing wrong?
- > --
- > Don't blame me, I voted against Amendment 2!
- >
- > Edward Hartnett ejh@khonshu.colorado.edu
- >
-
- Don't know for sure, but you do need to escape the percents (%), just
- look at the man page (if you have access to it) for cron.
-
- Steve Zubatkin
- Morristown, NJ
-
-