To raise some error message when there is error in any batch file called from a perl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RaviRajhulk
    New Member
    • Feb 2008
    • 12

    To raise some error message when there is error in any batch file called from a perl

    I am trying to execute a batch file from a perl code and its executing fine with the folowing code

    Code: ( text )
    `C:\temp\sample .bat`
    ,but another problem is occuring.....wh en there is some error in the .bat file(sample.bat ) the perl should not execute it,and should throw some error message,but in case of error in the .bat file also,it is executing...... ..Is there any way to capture in the perl code that if there is some error in the sample.bat file then it should throw some error message and should not execute the .bat file
Working...