Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
We don't bite newbies here... much
 
PerlMonks  

Re: Executing windows batch files via System

by c4onastick (Friar)
on Apr 25, 2007 at 22:48 UTC ( #612114=note: print w/ replies, xml ) Need Help??


in reply to Executing windows batch files via System

From perldoc on system:
"if LIST is an array with more than one value, starts the program given by the first element of the list with arguments given by the rest of the list."

I've never used system in this syntax (using the return value) but it looks like its just running the program "1" and passing everything else as an argument. Try this:

#!c:/Perl/bin/perl.exe print "Content-type: text/html\n\n"; print "Created Installer 2: "; system('c:\program\ie\makeinstall', '2');


Comment on Re: Executing windows batch files via System
Download Code
Re^2: Executing windows batch files via System
by ikegami (Pope) on Apr 25, 2007 at 23:39 UTC
    system(1, ...) is a Windows feature to run a program asynchronously. Kinda like fork+exec for a system without fork.
      Ah, interesting to know. See, you learn something new everyday!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://612114]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2014-04-24 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls