DIGIT-ARC read-only archive · snapshot: July 23, 2026

reading a file and sending mail by shell scripting..?? Plz help urgent..!!

2 posts · originally from https://geek.digit.in/community/threads/reading-a-file-and-sending-mail-by-shell-scripting-plz-help-urgent.146617/

S
SUKHI99 Original post #1
Sep 19, 2011 at 2:36 PM
hi I need help urgently...i need to write a shell script which can solve the following problem....its urgent plz help me out coz m totally newbie in shell scripting....
the problem is:
Suppose I have a folder called logs. whenever some error occurs some correspondence error file is generated.
I need a script that can first find out that there is a file with the string error in it. then can read it or can directly attach it with the mail(or in html text) and can send a mail to respected mail. can you please give me help that how i vl do it(considering new in shell script). as m confused with scripting but i have to do it.

Thanks
Prime_Coder
Sep 20, 2011 at 2:11 AM
Send mail bash script