Re: Help with Crontab script?
- From: Unruh <unruh-spam@xxxxxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 00:14:50 GMT
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.
.
- References:
- Help with Crontab script?
- From: robert
- Help with Crontab script?
- Prev by Date: hot sell nike jordan puma prada sandal......www.nikejordanaaa.com
- Next by Date: Re: Help with Crontab script?
- Previous by thread: Re: Help with Crontab script?
- Next by thread: Re: Help with Crontab script?
- Index(es):
Relevant Pages
|