![]() |
Script Help
This is a bit of topic but I need a script that I am not able to make out.... Maybe you guys can help me....
I am trying to make a script that will execute "ypmatch user alias" and out puts it to a file but the problem with that is that if the user is not in the map it will comback with an error and stop... Can you guys help me bypass the error and go on with the next user? Thank You!!!! |
Re: Script Hrlp
Any Body?!?
|
Re: Script Hrlp
i'm guessing your best bet would be to stream it into sed (string editor), or grep or a combination of the two - i'm not pro with linux, you can try to man sed online to see if it helps you
basically something like "ypmatch user alias | sed arg1 arg2 arg3" etc... only set the args to something that will properly parse your text if you want a php script on the other hand... =P |
All times are GMT. The time now is 20:32. |
vBulletin® Version 3.8.8