Dear All,
I've tried to send an Error Report, wich is generated from a machine, to an external E-Mail. So in this way I've tried to filter for some strange things at first, f. ex.
"errpt|grep UNABLE TO ALLOCATE SPACE >/tmp/errpt_pri1.lst"
(that file will create then). So now I want to send this file to an external Address after, using this command:
"more errpt_pri1 |senmail -v oliver.nelle@souls.de"
It's also ok, my problem now is, that if the file doesn't
exist, I'll also get a mail with a blank side, and that's what I don't want. I only will get a Mail, if this file was created, that's all! I think I've to write a Shell Script with If/Endif, must I? But I don't know how
(
Thanks a lot to all can help me!!!
)))
Regards
Oliver
I've tried to send an Error Report, wich is generated from a machine, to an external E-Mail. So in this way I've tried to filter for some strange things at first, f. ex.
"errpt|grep UNABLE TO ALLOCATE SPACE >/tmp/errpt_pri1.lst"
(that file will create then). So now I want to send this file to an external Address after, using this command:
"more errpt_pri1 |senmail -v oliver.nelle@souls.de"
It's also ok, my problem now is, that if the file doesn't
exist, I'll also get a mail with a blank side, and that's what I don't want. I only will get a Mail, if this file was created, that's all! I think I've to write a Shell Script with If/Endif, must I? But I don't know how
Thanks a lot to all can help me!!!
Regards
Oliver