Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cgi win 2000 making system command work.

Status
Not open for further replies.

abcinc

Programmer
Sep 5, 2000
7
0
0
US
We are trying to run a program in win2000 adv server using the following command. system ("C:\\Progra~1\\TurboSFX\\turbosfx \-S \".\\Secure-where demo_disk_3_ads is dpdisk3.ads (a file to run with the turbosfx exe.

This command runs fine in a dos window without the extra \ of course but when run from perl it executes and doesnt give and output. Also, the turbosfx executable file stayes in task manager and doesnt stop until you kill it's pid from a dos command windows. I get similer results when I put system ("C:\\Progra~1\\TurboSFX\\dpdisk3.bat"); and the above command is in the batch file.

Any help is very appreciated. [sig][/sig]
 
Try using the backtics to execute the command Dude.
`command`;
 
I tried system ('C:\\Progra~1\\TurboSFX\\dpdisk3.bat');

with no go. Is this what syntax you mean?

Thanks [sig][/sig]
 
Instead of the \\ stuff just use / and Perl will sort it out.

the backticks thing works like this:

my $x = `c:/Progra~`/TurboSFX/dpdisk3.bat`;

any output from your command will end up in $x

just a thought -- but have you tried this?

my $x = `command -c c:/Progra~`/TurboSFX/dpdisk3.bat`;


Mike
michael.j.lacey@ntlworld.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top