By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,002 Members | 2,157 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,002 IT Pros & Developers. It's quick & easy.

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

P: 12
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.....when 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
Feb 27 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

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