how to run multiple lines in a single batch file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pavanponnapalli
    New Member
    • May 2008
    • 51

    how to run multiple lines in a single batch file

    hi,
    I have got a batch file where i have written the following modules from
    CPAN:
    Code:
    ppm install DBI
    ppm install DBD::mysql
    ppm install Config::Properties
    ppm install Net::SMTP
    ppm install IO::Socket
    ppm install Log::Handler
    ppm install File::Find
    ppm install File::Copy
    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??
    Last edited by Nepomuk; Sep 15 '08, 07:47 AM. Reason: The code tags end with [/code], not with [%code]
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    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.

    Regards,

    Jeff

    Comment

    • TobyLL
      New Member
      • Oct 2008
      • 1

      #3
      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.

      i.e.
      call ppm install DBI
      call ppm install DBD::mysql

      etc.

      Comment

      Working...