LPM: Running system() on a WinNT box

Gregg Casillo gcasillo at ket.org
Wed Dec 20 13:25:53 CST 2000


I'm trying to create an "at" job on a Windows NT box with the following 
command:

system("at","\\\\FFTENC3 15:00 
c:\\progra~1\\real\\~realpr~2\\rmbatch.exe \/L 0,0 \/S 
\"real.ket.org:4040\/spycam.rm\"  \O e:\\real\\test.rm \/X 00:00:10");

The at job is created fine, but the quote marks that surround the server 
URL are lost. I need those quote marks in order for the rmbatch.exe 
program to work correctly. I've tried using backticks instead, but I get 
the same result. I've tried to modify the above statement to avoid using 
a command shell, and if you think that system() call above is ugly, look 
at this:

system("at","\\\\FFTENC3","15:00","c:\\progra~1\\real\\~realpr~2\\rmbatch.exe","\/L 
0,0","\/S \"real.ket.org:4040\/spycam.rm\""," \O e:\\real\\test.rm","\/X 
00:00:10");

The quote marks around the server URL are still lost when the at job is 
created. I read 14.1, Using system and exec, of Learning Perl on Win32 
Systems and found little help with this particular problem. Anyone out 
there have any ideas or solutions (aside from using a *nix system)?

Thanks,
Gregg Casillo
Web Programmer, KET




More information about the Lexington-pm mailing list