How to execute perl file which is located in the server path using Jcifs?
mariaprabudass <[email protected]> Mon, 10 Jun 2013 04:24:46 -0700 (PDT)
| Newsgroups | gmane.network.samba.java |
|---|---|
| Message-ID | <[email protected]> |
Hi,
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).
*Example:-*
SmbFile serverPath = new
SmbFile("smb://domainName;userName:password@serverPath/");
String ServerFilePath = serverPath + "test.pl";
process = Runtime.getRuntime().exec("perl" + ServerFilePath);
*Error:-*
Can't open perl script
"smb://TNQADYAR;3975:[email protected]/production_clean/DELETED_IN_ONE_MONTH/nimble/xmlvalidate.pl":
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.