in reply to System command is giving error if we redirect output to file

the shell (cmd.exe or command.com on windows) is responsible for redirection, and you're not invoking the shell
  • Comment on Re: System command is giving error if we redirect output to file

Replies are listed 'Best First'.
Re^2: System command is giving error if we redirect output to file
by rameshgsl (Initiate) on Dec 17, 2008 at 10:25 UTC
    Thanks for your comments. Actually when I run the following command in command prompt working fine. tshark.exe -i 3 -c 10 > abcd.txt If I include the same command in system command as $status = system ("C:\\Program Files\\Wireshark\\tshark.exe " , "-i 3", "-c","10" ,"> c:\\ram.txt"); Error : Invalid capture filter: "> c:\ram.txt"