Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailto command

Status
Not open for further replies.

Eddiefdz

IS-IT--Management
Joined
Mar 20, 2002
Messages
273
Location
US
Hello,

I have a cron job that looks somthing like this:

mailto:person@domain.com
00 22 * * * /bak/cronjob

As you can tell, I want the output of the cronjob file to be emailed to me on a daily basis as it runs. My problem is the following: I do get an email but it seems to only be showing me like the last page worth of the contents. Ther should be a huge listing with a bunch of pages, but for some reason it only shows me the ending part. Is there any switch which will make sure it sends me everthing?

Thanks for you help,
Eddie

Eddie Fernandez
CCNA, Network+, A+, MCP
 
Hmm ... not realy sure what you'r doing but I'd be inclined to do something like
Code:
0 22 * * * /bak/cronjob 1>&2 > /tmp/mylog.txt
30 22 * * * `uuencode mylog.txt mylog.txt | mailx -s 'Daily Report' you@yourcomain.com`

well something along those lines.

Good Luck
Laurie
 
I've never seen this, but stdout may be overflowing a buffer. Why not have it log to a file?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top