![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Accessing variables of one shell script in another shell script | rsendhilmani | Shell Programming and Scripting | 2 | 03-17-2009 01:17 AM |
| invoking a shell script inside cgi shell script | smriti_shridhar | Shell Programming and Scripting | 2 | 07-09-2008 02:50 AM |
| Accessing variables of one shell script in another shell script | looza | Shell Programming and Scripting | 2 | 06-30-2008 08:13 PM |
| To call/execute a shell script from a shell script | konark | UNIX for Dummies Questions & Answers | 1 | 10-26-2007 06:16 PM |
| How to pass a parameter from one Shell-script to another Shell-script | subodhbansal | Shell Programming and Scripting | 2 | 09-22-2007 06:19 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I need help with a shell script
i am trying to parse the logs from SystemOut.log file and emailing it to my email address ,and i am not able to. Can anyone help me with this....
i tried creating this : #!/bin/sh echo " " > /SystemOut.log for i in 2 3 4 5 6 7 8 9 10 do shellscript1 -parameter >> /SystemOut.log sleep 10 done line=`cat /SystemOut.log | grep 'manik' | wc -l` echo $line if [ $line -eq 0 ] then echo " "| mail -s "That's the subject" email@email.com else cat SystemOut.log | grep 'manik' | mail -s "Did not match the pattern" email@email.com fi exit 0 Thank you in advance edit by bakunin: please post your question to a new thread. Your question and the question of the thread owner have nothing to do with each other. I am going to split your question to a new thread. Last edited by bakunin; 09-24-2008 at 07:23 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|