KSH script won't email when nohup -


i have unique issue, in unix environment , have ksh script ssh's multiple sites, executes code , returns response , emails response email address.

the script works when run it, since must run several hours wish nohup script.

here problem is. when nohup script email not sent. have scoured boards looking reason or solution no avail. if point me in right direction appreciate it.

here mail portion of script:

mail -s "subject"  email@address.com  < /usr/etc/bin/mydir/infofile.out && rm -f infofile.out exit; 

edit: environment aix 6.1.7.1

finally figured out answer, , thou being dumb, feel have responsibility answer anyway, in case else runs across issue.

turns out when nohup script send email correctly. nohuping , logging out forces email sent unix mail utility's default email address, , in environment address sends out hundreds of useless alerts, of have filtered in outlook go trash folder, email sending ended in trash folder.

thanks responded, shellter, recommendation use shell debugging let me know sending default mail account.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -