Search Results

Search: Posts Made By: little g
4,418
Posted By little g
beautiful, thats working perfect. Thanks...
beautiful, thats working perfect.

Thanks again.. :D
4,418
Posted By little g
cool thanks, so im assuming that to test $? and...
cool thanks, so im assuming that to test $? and perform further steps within the same shell i would need something like this:

rsh vps-is1 vsh -Cvps.1 p1 status | { grep "(noa)" ; if [ $? = 0 ]...
4,418
Posted By little g
seems to give the correct exit status now, why is...
seems to give the correct exit status now, why is that different from the previous code. Can you explain the syntax of the new code above for me please so i understand it properly?

Many thanks
4,418
Posted By little g
I cant add tools to the box, would invalidate our...
I cant add tools to the box, would invalidate our support agreement with the supplier....

Is there any other way you can think of that i can check the line status (as per my code above) and...
4,418
Posted By little g
i get : ssh: not found when i substitute rsh...
i get :

ssh: not found when i substitute rsh for ssh. I guess we dont have it on the box (im at work)...
4,418
Posted By little g
Hi there again. Having a little problem using...
Hi there again.
Having a little problem using the $? value to decided whether to execute further code.

Im using Grep as follows:

rsh vps-is1 -Cvps.1 p1 status | grep "(noa)"

If i then "echo...
4,418
Posted By little g
Wow, thank you so much. Thanks for giving...
Wow, thank you so much.

Thanks for giving such a comprehensive reply, its really appreciated :)
4,418
Posted By little g
That worked like a charm thanks. Another...
That worked like a charm thanks.

Another quickie if its ok... :D

Is it possible to test the return that grep gives and perform aditional tasks if it meets a criteria.

By this is mean that if...
4,418
Posted By little g
Excellent, Im at home at the moment but will try...
Excellent, Im at home at the moment but will try this as soon as i hit the office in the morning.

Can i use it in conjunction with the -i option as the string sometimes isnt capitalised...???
4,418
Posted By little g
Advaced Grep
Hi all

I have been doing basic admin on a Sun OS 5.6 system for some time and am just trying to learn about shell scripts to help perform some dull things i do every day.

Im trying to automate...
Showing results 1 to 10 of 10

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