in reply to How to print the contents of system function to a .txt file

When I checked the input.txt file there's no output or it didn't print the result there..

And it works from the commandline?

And you don't have a different input.txt someplace?

Try String::ShellQuote/Win32::ShellQuote and/or IPC::System::Simple or IPC::Run/IPC::Run3

  • Comment on Re: How to print the contents of system function to a .txt file

Replies are listed 'Best First'.
Re^2: How to print the contents of system function to a .txt file
by astronogun (Sexton) on Mar 12, 2013 at 04:52 UTC

    I'm using debian and the .txt file is in the directory of "/home/netadmin/Desktop" along with the .pl file when i run it using the "./" the generated .txt file has no output there.

      when i run it using the "./" the generated .txt file has no output there.

      Not what I asked, the command you're trying to execute using system, what happens when you type it into the shell?