470,596 Members | 1,356 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,596 developers. It's quick & easy.

how to run multiple lines in a single batch file

I have got a batch file where i have written the following modules from
Expand|Select|Wrap|Line Numbers
  1. ppm install DBI
  2. ppm install DBD::mysql
  3. ppm install Config::Properties
  4. ppm install Net::SMTP
  5. ppm install IO::Socket
  6. ppm install Log::Handler
  7. ppm install File::Find
  8. ppm install File::Copy
  9. ppm install Parse::AccessLogEntry
I have written these lines inside InstPerlMod.bat
when i am running the batch file in the command prompt as InstPerlMod.bat,
only first line is executing. i.e ppm install DBI. All the remaining lines are not executing . Why so? how to make other lines execute??
Sep 13 '08 #1
2 13084
3,503 Expert Mod 2GB
Well, there has t be a reason it isn't continuing. Is it that the installation is waiting for some input? That all that I can think of. Try re-directing the output of the batch file to a log and see what is going on.


Sep 13 '08 #2
PPM is actually a batch file. When a batch file calls another, it will not return from the call.

If you put a CALL before each PPM, then the script will work.

call ppm install DBI
call ppm install DBD::mysql

Oct 2 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by moondaddy | last post: by
5 posts views Thread by Arsen V. | last post: by
3 posts views Thread by Arun | last post: by
9 posts views Thread by Graham | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.