home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.shell:5061 comp.unix.questions:14684 comp.unix.admin:6633
- Newsgroups: comp.unix.shell,comp.unix.questions,comp.unix.admin
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!bgsuvax!enigma!denbeste
- From: denbeste@enigma.bgsu.edu (William C DenBesten)
- Subject: Re: crontab problem executing this command!
- Message-ID: <Bz9MKx.2r7@andy.bgsu.edu>
- Originator: denbeste@enigma
- Sender: usenet@andy.bgsu.edu (USENET)
- Reply-To: denbeste@enigma.bgsu.edu
- Organization: Bowling Green State University B.G., Oh.
- References: <EJH.92Dec10164940@khonshu.colorado.edu>
- Date: Mon, 14 Dec 1992 20:07:43 GMT
- Lines: 22
-
- 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?
-
- I run the following daily:
-
- backup% crontab -l
- 0 3 * * * dodump `date +\%a` 1>>/var/log/`date +\%m-\%d-\%y`backup 2>&1
- backup%
-
- The difference that I see is that I quoted the percents. I am running
- SunOS 4.1.3.
- --
- William C. DenBesten is denbeste@bgsu.edu or denbesten@bgsuopie.bitnet
-