Search Results

Search: Posts Made By: $scipt_Kid
4,823
Posted By $scipt_Kid
set variable value based on if string existing in output
I solved my issue by using the following code


#!/bin/bash
function GET_STATUS {
#values Active Passive Failed
ssh -a localhost '/home/user/fakecommand.sh'
}

STATE="unknown"...
Showing results 1 to 1 of 1

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