Search Results

Search: Posts Made By: cartrider
16,042
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".
16,042
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'...
16,042
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...
Showing results 1 to 3 of 3

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