I think I did right in above code but I am getting following error: "Can't exec "cd"" No such file or directory at crap.pl in line 8, Command failed Any suggestion? pleasemy $cmd = "cd /cat/bat"; system($cmd); if ($? == -1) { print "Command failed"; }
In reply to system() command by Sun751
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |