Quote:
Originally Posted by
anzie.sharma
I need help in writing a shell script that will automatically take output file from a particular folder from a server
First: Can you run scripts on that server? Can you email from that server? Have you tested this?
Second: Does this file always have the same name?
Third: How is the script started? From cron or from the command-line or from another process?
Quote:
and if the file is generated
Fourth: Do you mean if the file exists? Is it possible the file can exist but be empty? If it is empty, does that mean generation failed?
Quote:
send email notifications to certain group of ppl
Can you set up a mail alias or mail list? Then the script only needs to specify one recipient.
Quote:
and if it is not generated send a mail wid error msg..