I
ishulz
This is simple prog:
#!/usr/bin/perl -w
system('/usr/local/bin/cat aaa');
It works fine and $? = 0
But this prog:
#!/usr/bin/perl -w
system('/usr/bin/ls aaa >bbb');
doesn't work, and $?=65280, $!='No such file or directory'
'/usr/bin/ls aaa >bbb' started manually works fine.
What happens?
#!/usr/bin/perl -w
system('/usr/local/bin/cat aaa');
It works fine and $? = 0
But this prog:
#!/usr/bin/perl -w
system('/usr/bin/ls aaa >bbb');
doesn't work, and $?=65280, $!='No such file or directory'
'/usr/bin/ls aaa >bbb' started manually works fine.
What happens?