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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -