Windows batch file to install multiple perl modules - only the first line runs -


i'm installing bugzilla on windows, , checksetup.pl asked me install bunch of modules running ppm (perl package manager) commands so:

c:\>ppm install timedate 

this runs correctly, , installs timedate module.

i haven't done command line stuff before, thought time try out. made batch file called perlmodules.bat:

ppm install chart ppm install template-gd ppm install mime-tools ppm install xml-twig ppm install patchreader ppm install perl-ldap ppm install authen-sasl ppm install radiusperl ppm install soap-lite ppm install json-rpc ppm install json-xs ppm install test-taint ppm install html-scrubber ppm install email-mime-attachment-stripper ppm install email-reply ppm install theschwartz ppm install daemon-generic ppm install mod_perl ppm install apache-sizelimit ppm install math-random-secure ppm install timedate ppm install datetime ppm install datetime-timezone ppm install template-toolkit ppm install email-send ppm install email-mime 

running produces output:

e:\program files\bugzilla>perlmodules.bat  e:\program files\bugzilla>ppm install chart downloading chart-2.4.6...done unpacking chart-2.4.6...done generating html chart-2.4.6...done updating files in site area...done   18 files installed  e:\program files\bugzilla> 

so appears first line of batch file runs, , rest nothing.

in end looked man page ppm ppm help , discovered pass package names @ once , save myself hassle of solving problem, don't understand why little batch file didn't work.

i thought batch files fed line after line shell prompt, waiting until each had finished job, until reached end of file. missing in equation?

in perl installation command ppm batch file: ppm.bat (not .exe)

when call 1 batch file another, calling batch file terminated together called batch file.

you need use call in order able run batch file within 1 batch file.

 call ppm install chart call ppm install template-gd call ppm install mime-tools call ppm install xml-twig call ppm install patchreader 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -