[jcifs] How to execute perl file which is located in the server path using Jcifs?

mariaprabudass maria.prabudass at gmail.com
Mon Jun 10 05:24:46 MDT 2013


I need to *execute my Perl script file using Java
Runtime.getRuntime().exec()*. But my perl script file *located in the server
path*. I tried via *java SmbFile system*. But I found an Error. Kindly
advise me, how to execute that perl script through *Java Jcifs* (Perl file
located in the server path).


SmbFile serverPath = new
String ServerFilePath = serverPath + "test.pl";
process = Runtime.getRuntime().exec("perl" + ServerFilePath);


Can't open perl script
No such file or directory

Thanks for looking into this....

View this message in context: http://samba.2283325.n4.nabble.com/How-to-execute-perl-file-which-is-located-in-the-server-path-using-Jcifs-tp4649757.html
Sent from the Samba - jcifs mailing list archive at Nabble.com.

More information about the jCIFS mailing list