(urgent) how to run a batch file in Linux os
1 posts in topic
Flat View  Flat View

Posted By:   prasath_subramanian
Posted On:   Tuesday, September 26, 2006 11:56 PM

hai all,
i have the code to execute the batch files in windows OS ,

String[] cmd = {"cmd.exe","/c","start start_win32.bat"};
Process p =runtime.exec(cmd);

is this code will run in Linux OS?????/
if there is any alternate code means please send me that code...


Re: (urgent) how to run a batch file in Linux os

Posted By:   Christopher_Koenigsberg  
Posted On:   Wednesday, October 11, 2006 08:38 PM

Linux etc. OS's use a "shell" as their "command interpreter" so your script file has to be written in the language it understands, typically "sh" (Bourne shell as the lowest common denominator, whether it's really Bash, KSH etc.).
About | Sitemap | Contact