in reply to Perl Exec with Spaces

Something I've used before in a Perl script to launch a 'tail -f' in a CMD.EXE window so I could monitor along with file output as the Perl script runs:

if (-e "c:\\usr\\bin\\tail.exe") { system ("start \"TITLE OF WINDOW - $LOG\" \"c:\\usr\\bin\\tail.exe +\" -f $LOG") }

$LOG is a variable populated with the create log file that I'm tailing. 'start' is a built-in Windows command to launch a program. Note that you'll need to supply the first argument (in the above example: \"TITLE OF WINDOW - $LOG\") if you're going to use quotes or arguments to your program; otherwise, start will interpret the args wrong.

For information, open CMD.EXE and do:

{C} > start /?