Search Results

Search: Posts Made By: cartrider
15,921
Posted By disedorgue
Hi, You must protect your variable with "...". ...
Hi,
You must protect your variable with "...".
So, replace:
if [ $proc_out = "Normal completion" ]
by
if [ "$proc_out" = "Normal completion" ]

And add a newline in last line (you should check...
15,921
Posted By wisecracker
Assuming your test is how you want it, note the...
Assuming your test is how you want it, note the red semi-colon.
EDIT: Take note of disedorgue's comments for your test proceedure.
if [ $proc_out = "Normal completion" ]; then
echo 'match'...
15,921
Posted By RudiC
There needs to be a ; or a <new line> char in...
There needs to be a ; or a <new line> char in front of the "then".
Showing results 1 to 3 of 3

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