Jeff Rhue wrote:

I am trying to have the mail procedure in the POSIXness script send me an
email via the cron .
If I run mail from the command shell or directly from a script it works
fine. but when it is run in a script that is run by cron it does not.


I can see the mail processes using 'ps' but no mail is ever sent.

Any ideas on this?

J.


Jeff,

You were the person that finally helped me document all files for making email work from cron. This question comes up every once in awhile. It came up for me around July of 2002. I had to set up a remote LEAF box and wanted to see the logs from the firewall. So with the scripts documented by http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/leaf/devel/dr_kludge/email/00readme.txt?rev=HEAD&content-type=text/plain
you can solve your cron email problem, send your IP address to yourself in email or email your firewall logs. The modifications support sending the logs and IP address to several system admins, if you need the functionality.


The other files are at:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/leaf/devel/dr_kludge/email/POSIXness.conf?rev=HEAD&content-type=text/plain
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/leaf/devel/dr_kludge/email/POSIXness.mail?rev=HEAD&content-type=text/plain
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/leaf/devel/dr_kludge/email/dhclient-exit-hooks?rev=HEAD&content-type=text/plain
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/leaf/devel/dr_kludge/email/ipmail?rev=HEAD&content-type=text/plain
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/leaf/devel/dr_kludge/email/lrp.conf?rev=HEAD&content-type=text/plain
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/leaf/devel/dr_kludge/email/multicron-d?rev=HEAD&content-type=text/plain

I wrote this information up yesterday. I reviewed it tonight. However, there still may be some rough edges. Please let me know if you need any more assistance or where the document needs clarification.

I hope this helps,
Greg Morgan



-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to