J
jonathan
hey all,
I wanted to use this syntax to rename a complicated - and long - shell
function involving piping, teeing to another command, etc.
Unfortunately,
system { 'ls -lR' } 'secretls';
doesn't work, since it uses 'ls -lR' as the command itself, not ls
with -lR as an argument. I could rewrite this as:
system { 'ls' } 'secretls', '-lR';
which works for the simple case, but how about:
system( "ls -lR > 1 2>&1" );
I can't think of any syntax in list form that could replace this - and
of course, I *do* need to replace it for the sake of hiding entries in
the process table.
Any clue on how to do this?
Thanks much,
jon
I wanted to use this syntax to rename a complicated - and long - shell
function involving piping, teeing to another command, etc.
Unfortunately,
system { 'ls -lR' } 'secretls';
doesn't work, since it uses 'ls -lR' as the command itself, not ls
with -lR as an argument. I could rewrite this as:
system { 'ls' } 'secretls', '-lR';
which works for the simple case, but how about:
system( "ls -lR > 1 2>&1" );
I can't think of any syntax in list form that could replace this - and
of course, I *do* need to replace it for the sake of hiding entries in
the process table.
Any clue on how to do this?
Thanks much,
jon