Search Results

Search: Posts Made By: pradeepbaliga
3,492
Posted By pradeepbaliga
Thanks Mayur, I already written script like...
Thanks Mayur,

I already written script like this to check the service

read component
if ps ax | grep -v grep | grep -w $component > /dev/null
...
3,492
Posted By pradeepbaliga
Thanks Mayur for your response. Actually I...
Thanks Mayur for your response.

Actually I newbie to shell. and when i tried your code i am getting permission error.

stage2sc5895 143 /x/web/STAGE2SC5895/merchantvettingserv> service...
10,793
Posted By pradeepbaliga
Dude its an or condition so whatever may be the...
Dude its an or condition so whatever may be the values it will go to if condition. Go for and condition
10,793
Posted By pradeepbaliga
Since its a or condition and always it will come...
Since its a or condition and always it will come to If condition :) change it to and condition and try
10,793
Posted By pradeepbaliga
LAST_TRANSACTION=2 if [[ $LAST_TRANSACTION -ne 1...
LAST_TRANSACTION=2 if [[ $LAST_TRANSACTION -ne 1 -o $LAST_TRANSACTION -ne 2 -o $LAST_TRANSACTION -ne 3 ]]; then # do something fi
3,492
Posted By pradeepbaliga
Need to Restart Service with Password
Hi All,

Requirement : I need to check for some services in my environment and restart the service if its not running.

I have written script to check the script if its running or not. While if...
Showing results 1 to 6 of 6

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