A
AS
Hi,
I tried to run a set of Unix commands (separated by |) using the
'system' command from a perl script, but only a single command works.
What is a good way to do this?
I need to take the output of one command put it into the next one use
that ooutput in a third command. e.g.,
system ('id | awk '{print $2}' | cut -d\( -f2 | cut -d\) -f1');
This command in itself gives me the current user's set primary group
in Unix (Solaris)
I tried to run a set of Unix commands (separated by |) using the
'system' command from a perl script, but only a single command works.
What is a good way to do this?
I need to take the output of one command put it into the next one use
that ooutput in a third command. e.g.,
system ('id | awk '{print $2}' | cut -d\( -f2 | cut -d\) -f1');
This command in itself gives me the current user's set primary group
in Unix (Solaris)