I have a simple .ksh which has a sendmail command that reads a file which has email details.
Now when I trigger the job from autosys, Only if I place the input file in $HOME path, the send mail sends out the email.
But if I place the same input file in any subfolder within $HOME, then I am receiving no emails.
It seems like sendmail is reading the file as an empty file.
However, if the same .ksh is run manually from the server. No matter where the input file is placed , I get email.
Could Anyone help with solving this issue?
I tried comparing env variables when the .ksh is run from both autosys and manually.
There is no significant difference.
Also, I tried using blank .profile files too.
Kiran Tejaswi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.