Reply
Thread Tools
SeRi@lDiE's Avatar
Posts: 919 | Thanked: 37 times | Joined on Aug 2006 @ /dev/null
#1
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!!!!
__________________
<gla55> security stuff is just to piss off people, really

Last edited by SeRi@lDiE; 2007-07-14 at 00:39.
 
SeRi@lDiE's Avatar
Posts: 919 | Thanked: 37 times | Joined on Aug 2006 @ /dev/null
#2
Any Body?!?
__________________
<gla55> security stuff is just to piss off people, really
 
Posts: 30 | Thanked: 2 times | Joined on Jul 2007
#3
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
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 20:48.