<<< Date Index >>>     <<< Thread Index >>>

Re: Lost connection when scripted



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday, July 29 at 05:10 PM, quoth Chris Green:
>When running this script at the command line everything works as 
>expected - I get the mail in my inbox with the report as the body of 
>the mail, about 8KB in size. However, when I execute the same script 
>via cron I experience a "lost connection after DATA" error on the 
>mail server.

So the question to ask is: what's different? The usual differences 
between cron and the commandline are the user and the environment. For 
example, does cron have the same PATH (so is it using the same mutt 
binary?)? Is it running as a different user (so does it have 
permissions to read your muttrc?)? Does it have the same $HOME 
directory (so is it looking for a muttrc in the wrong place?)? Does 
cron place some restrictions (e.g. length of time or amount of memory 
consumed) on tasks?

~Kyle
- -- 
It's amazing how much "mature wisdom" resembles being too tired.
                                                  -- Robert A. Heinlein
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkiPOi4ACgkQBkIOoMqOI17d8ACghmNzZCPZhDxBuHVT1TfCbkuw
ed4AoOGu+bmxGHj7DIMkMJBc5sKTEc4p
=iNAs
-----END PGP SIGNATURE-----