Hi all, I'd like to get a script which allows me to get the gid of the user which is connected currently. I've done this "script" which is not very useful for me because I have to run it like this : id | myscript.pl My script is :
while(<>) { if(/^uid=\d+.\w+.\sgid=(\d+)/) { $gid=$1; print "gid:$gid\n"; } } My aim is to change the ip address following the gid. When I will change my gid (su toto) my address will change too. If you could help me... Thx in advance for u help Sylvain ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]