Re: Help with Crontab script?



robert <robertbabula@xxxxxxxxx> writes:

Hello, I'm rather new to linux and was wondering if someone could
assist me in writing a crontab?

I want to tar a file daily and send it to an email address.

I think I can figure out how to write a crontab to tar the file daily
but how do I write one to email it as an attachment daily? I haven't
quite figured out email in linux yet.

email is done by a program. An old such command line program is called mail

mail -a /path/to/and/name-of.tar -s "name-of.tar on `date`" recipient@xxxxxxxxxxxx

will mail the file /path/to/and/name-of.tar as an attachment to the email
address recipient@xxxxxxxxxxxx with subject "name-of.tar on <data>" where
<date> is the date when the file was sent.

man mail



Thanks for any help.

.



Relevant Pages

  • Re: Question about Eurekalog
    ... on out of college was as a technical writer for an Insurance group! ... Of course when you're writing tech documentation one can't meander off ... newsgroups like this I would not even bother coming here because I ... from Robert Meek dba Tangentals Design ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Freedom of speech lost; Imus isnt so bad as to be fired?
    ... effective writing. ... Robert, we can do this from the top. ... are responsible for the defense and advancement of free speech? ...
    (alt.usage.english)
  • Re: Question about Eurekalog
    ... It's funny you should say that, as one of the very first jobs I took ... If I tried in anyway to censor my writing on ... newsgroups like this I would not even bother coming here because I consider ... from Robert Meek dba Tangentals Design ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Red Dwarf- New series?
    ... possibly accounts for the dreadful standard of writing. ... Robert Lllewelyn's site says that originally it was going to be a ...
    (uk.rec.motorcycles)
  • RE: C# Command to Wait a Specified Period of Time
    ... "Robert E. Flaherty" wrote: ... I am writing a windows service that will process a file once it has beed ...
    (microsoft.public.dotnet.languages.csharp)