jeudi 5 novembre 2015

if condition in Linux

Vote count: 0

I am trying to write one if condition in Linux.

I have a variable : $check_mrp . I want to check if this variable is not equal to either of the following three values : WAIT_FOR_LOG or APPLYING_LOG or WAIT_FOR_GAP then echo message : "Please start the Manged Recovery Process".

For example if variable value is equal to any of the three (WAIT_FOR_LOG or APPLYING_LOG or WAIT_FOR_GAP) then it should not echo the message since services are running

Could someone please help.

Thanks Rahul

lurker
24.3k
asked 5 mins ago

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at http://ift.tt/jcXqJW.



if condition in Linux

Aucun commentaire:

Enregistrer un commentaire