The short answer would be to set a variable to the output of the command using backticks. ie: $id_info = `/path/to/id`; chomp $id_info; And then using various splits, you will be able to get at individual pieces of the return.
HTH JD --- Márcio_Oliveira <[EMAIL PROTECTED]> wrote: > hi! > > I need to get the user information provide by the > linux id comand in a perl script. how a can do that? > > ex. > > linux prompt# id root > > uid=0(root) gid=0(root) groups=0(root),1001(teste) > <--- I need thid information. > > thank's > > Marcio Oliveira > LPIC-1 > > > > _______________________________________________ > Perl-Unix-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs