in reply to Re: redirecting output from a system command to a text file
in thread redirecting output from a system command to a text file

Actually, I got it to work by putting ticks around the $a: system("./TVT.exe '$a' >test.txt"); I am not quite sure why that worked, but it does.

Replies are listed 'Best First'.
Re^3: redirecting output from a system command to a text file
by cdarke (Prior) on Apr 19, 2011 at 20:12 UTC
    I just noticed that you are running under Cygwin in one of your replies, so the stuff about the current directory and %path% does not apply.

    There must be a char in the filename that the shell finds interesting.
      Hmm. OK, I am back to square 1. the ticks around a does NOT work, it's just that the exe naturally will run on ALL pdf's in a directory.