Gossamer Forum
Home : General : Perl Programming :

system() or `` calls on IIS?

Quote Reply
system() or `` calls on IIS?
Hi,

Got an NT machine, and it won't let me run external programs with the system() or `` commands :|

Is there a different way of doing this on NT? Normally a system command works... so I'm not sure why it won't this time :/

TIA

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] system() or `` calls on IIS? In reply to
Hi,

Why won't it let you run it?

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Andy] system() or `` calls on IIS? In reply to
I'm assuming you're running IIS 5 but this link might at least give you something to google on:

http://www.4images.com/ntperl/iis4.htm#io

~Charlie
Quote Reply
Re: [Alex] system() or `` calls on IIS? In reply to
Hi,

Thanks. It just gives me errors :/

Quote:
[Fri Apr 15 08:45:43 2005] D:\inetpub\wwwroot\downloads.domain.com\pdf_download.cgi: Can't spawn "cmd.exe": No such file or directory at D:\inetpub\wwwroot\downloads.domain.com\pdf_download.cgi line 112.

The code looks like;

Code:
my $cmd = qq{D:\\\Batch2PDF\\\Batch2PDF.exe -f $destsite$ID.doc -s $dest_folder -d $dest_folder};

# system '"$cmd"' || die "$?,$!";
open(WRITECOM, ">D:\\tempPDF\\$destsite-$ID.bat");
print WRITECOM qq{$cmd};
close(WRITECOM);
my $cmd2 = qq{D:\\tempPDF\\$destsite-$ID.bat};
system($cmd2);

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] system() or `` calls on IIS? In reply to
Hi,

I've managed to get a bit more working, by uploading a netapi32.dll file into d:/Batch2PDF/, and that got rid of some of the errors. It still seems to be dying though :/

Quote:
9:05:52 AM Batch2PDF.exe:1956 QUERY INFORMATION C:\WINNT\system32\MSVBVM60.DLL SUCCESS Attributes: N
9:05:52 AM Batch2PDF.exe:1956 OPEN C:\WINNT\WINHELP.INI FILE NOT FOUND Options: Open Access: All
9:05:52 AM Batch2PDF.exe:1956 OPEN C:\WINNT\WINHELP.INI FILE NOT FOUND Options: Open Access: All
9:05:52 AM Batch2PDF.exe:1956 QUERY INFORMATION C:\WINNT\system32\.HLP FILE NOT FOUND Attributes: Error
9:05:52 AM Batch2PDF.exe:1956 QUERY INFORMATION C:\WINNT\system32\.HLP FILE NOT FOUND Attributes: Error
9:05:52 AM Batch2PDF.exe:1956 QUERY INFORMATION C:\WINNT\Help\.HLP FILE NOT FOUND Attributes: Error
9:05:52 AM Batch2PDF.exe:1956 QUERY INFORMATION C:\WINNT\Help\.HLP FILE NOT FOUND Attributes: Error
9:05:52 AM Batch2PDF.exe:1956 CLOSE D:\inetpub\wwwroot\downloads.domain.com SUCCESS

Any ideas?

TIA

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates