Search Results

Search: Posts Made By: vin8465
34,951
Posted By pseudocoder
echo "mail not sent yet" # not sure, but this...
echo "mail not sent yet" # not sure, but this line probably needs to be placed in the else part ?
$PRINTF "%s\n" "$EMAILMESSAGE" | /bin/mailx -s "$SUBJECT" "$RECIPIENT" ...
34,951
Posted By Scrutinizer
Hi, since $EMAILMESSAGE is a variable and not a...
Hi, since $EMAILMESSAGE is a variable and not a file you can not use input redirection like that. Also it is typically good practice to quote variable references..
You could try:
echo...
34,951
Posted By Scrutinizer
You need to use egrep instead of grep...
You need to use egrep instead of grep...
34,951
Posted By Scrutinizer
Hi Vin8465, if you use grep you have give it...
Hi Vin8465,

if you use grep you have give it something to grep (file or stdin)..
In this segment you do not specify the input file, so grep is waiting for input.
SEARCH=`$GREP -i 'error|warning'`
34,951
Posted By Scrutinizer
Hi, If I execute this statement on the...
Hi,

If I execute this statement on the command line, I get an error:
$ SEARCH='grep -i -E -q 'error|warning''
warning: command not found
You probably meant to use backticks (`) instead of...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 09:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy