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

  1. Xref: sparky comp.unix.shell:5058 comp.unix.questions:14678 comp.unix.admin:6627
  2. Newsgroups: comp.unix.shell,comp.unix.questions,comp.unix.admin
  3. 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
  4. From: stevez@cbnewsb.cb.att.com (steven.a.zubatkin)
  5. Subject: Re: crontab problem executing this command!
  6. Message-ID: <1992Dec14.165915.13609@cbfsb.cb.att.com>
  7. Sender: news@cbfsb.cb.att.com
  8. Organization: AT&T
  9. References: <EJH.92Dec10164940@khonshu.colorado.edu>
  10. Date: Mon, 14 Dec 1992 16:59:15 GMT
  11. Lines: 23
  12.  
  13. From article <EJH.92Dec10164940@khonshu.colorado.edu>, by ejh@khonshu.colorado.edu (Edward J. Hartnett):
  14. > Hi! I have a command in a crontab file which is supposed to
  15. > periodically copy a mail file (containing my outgoing mail) into a
  16. > datestamped file. Here's what I see when I type crontab -e
  17. > 59 11 * * 6 cp /home/khonshu/sjsk/.outgoing.record /home/khonshu/sjsk/msgs/mailout.`date '+%y%m%d'`
  18. > Which I expected to copy my .outgoing.record to mailout.921205 last
  19. > Saturday morning. But instead I got a copy to mailout. with no date.
  20. > Can anyone tell me what I'm doing wrong?
  21. > --
  22. >     Don't blame me, I voted against Amendment 2!
  23. > Edward Hartnett                ejh@khonshu.colorado.edu
  24.  
  25. Don't know for sure, but you do need to escape the percents (%), just
  26. look at the man page (if you have access to it) for cron.
  27.  
  28. Steve Zubatkin
  29. Morristown, NJ
  30.  
  31.