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!
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
__