home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / shell / 5061 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.5 KB

  1. Xref: sparky comp.unix.shell:5061 comp.unix.questions:14684 comp.unix.admin:6633
  2. Newsgroups: comp.unix.shell,comp.unix.questions,comp.unix.admin
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!bgsuvax!enigma!denbeste
  4. From: denbeste@enigma.bgsu.edu (William C DenBesten)
  5. Subject: Re: crontab problem executing this command!
  6. Message-ID: <Bz9MKx.2r7@andy.bgsu.edu>
  7. Originator: denbeste@enigma
  8. Sender: usenet@andy.bgsu.edu (USENET)
  9. Reply-To: denbeste@enigma.bgsu.edu
  10. Organization: Bowling Green State University B.G., Oh.
  11. References: <EJH.92Dec10164940@khonshu.colorado.edu>
  12. Date: Mon, 14 Dec 1992 20:07:43 GMT
  13. Lines: 22
  14.  
  15.  From article <EJH.92Dec10164940@khonshu.colorado.edu>, by ejh@khonshu.colorado.edu (Edward J. Hartnett):
  16. > Hi! I have a command in a crontab file which is supposed to
  17. > periodically copy a mail file (containing my outgoing mail) into a
  18. > datestamped file. Here's what I see when I type crontab -e
  19. > 59 11 * * 6 cp /home/khonshu/sjsk/.outgoing.record /home/khonshu/sjsk/msgs/mailout.`date '+%y%m%d'`
  20. > Which I expected to copy my .outgoing.record to mailout.921205 last
  21. > Saturday morning. But instead I got a copy to mailout. with no date.
  22. > Can anyone tell me what I'm doing wrong?
  23.  
  24. I run the following daily:
  25.  
  26. backup% crontab -l
  27. 0 3 * * * dodump `date +\%a`  1>>/var/log/`date +\%m-\%d-\%y`backup 2>&1
  28. backup%
  29.  
  30. The difference that I see is that I quoted the percents.  I am running
  31. SunOS 4.1.3.
  32. -- 
  33. William C. DenBesten is denbeste@bgsu.edu or denbesten@bgsuopie.bitnet
  34.