Dearest Monks,
I've never really had much experience with windows IIS, and I'm trying to run this painfully simple script
#!c:/Perl/bin/perl.exe
print "Content-type: text/html\n\n";
print "Created Installer 2: ";
my $value = system(1,'c:\program\ie\makeinstall 2');
#my $value = system(1,'c:\program\ie\makeinstall.bat 2');
print "value=$value";
The output: Created Installer 2: value=-1
Anything glaringly wrong with this syntax? I've also used the exec statement in place of statement. Seeking the Monks infinite wisdom
UPDATE: I changed the permissions, however this is the output now: Created Installer 2: value=65280 and there was no installer creation (the point of the batch file)
UPADATE2: Also if I double click on the pl file, the script runs fine and builds the installer. I'm not sure what new permissions I can give to the folder that its running in, it has every single one open.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.