![]() |
|
|
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 |
| read a file in shell and put result in a line | lottiem | Shell Programming and Scripting | 6 | 07-06-2009 05:16 PM |
| How to assign the result of a SQL command to more than one variable in shell script. | little_wonder | Shell Programming and Scripting | 4 | 05-06-2009 11:04 PM |
| get result from database into shell script | ali560045 | Shell Programming and Scripting | 1 | 02-03-2009 04:56 AM |
| The shell script is not returning proper result | clnsharma123 | AIX | 1 | 01-25-2008 04:54 AM |
| Could any one tell me how to do get result in fraction in shell script | Neerajjaiswal | Shell Programming and Scripting | 5 | 01-09-2008 08:18 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
shell script result to file
Since I'm not an expert in shell scripting, I have question on sending script result to file. I have script like this...
if condition=0: then echo "service is not running" | mail -s "Server Status" uname@companyname fi sleep 10 if configtion=1: then echo "service is not running" | mail -s "Server Status" uname@companyname fi else echo "service is running" | mail -s "Server Status" uname@companyname fi script is working fine but getting 3 mails from the server. Instead sending 3 emails, I want to put all 3 in 1 file, send an email with attached file. Any idea. Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|