IF command
Hi All,
I have a script Quote:
I'm not sure how I can see that other script execution completed or not before I delete the file even though I put sleep command. And also it seems like its not that good, even though it is working. I wanted to see if we can write in more efficient way. Any help appreciated. |
Try catching the return code from mail.pl, by checking $? right after the mail.pl executed.
Another option could be to check mail.pl's prints on standard output (stdout) or standard error (stderr), if it prints anything. Or maybe you can start by explaining what mail.pl actually does? |
Thanks,
mail.pl script just sends an email. I can not add mail command in main script bcz it does not work. don't ask me why. But my main concern is write the same script in efficient way. Thanks |
Quote:
Please no texting shorthand here----because |
Yes that will be the my next step to figure out why its not working.
Thanks |
All times are GMT -5. The time now is 12:17 PM. |