AlistairMonkeyFinger
Programmer
Hi,
Maybe not strictly a java question but... i have a Java program i am working on, it runs on a Windows PC and needs to do the following:
1.) Copy a file from windows to a Linux server
Easy enough, set up samba on linux and use java.io classes.
2.) Execute a batch file (.sh) on the Linux server which runs a program which does stuff on the server to the previously copied file
3.) Read data froma new file which has been created from step 2.)
Steps 1 and 3 are not a problem, however, i am stuck on 2. Any ideas ? I can't just run the batch file from windows as i want it to run on the server (not the machine that is calling the script). I didn't want to go down the route of having a java "server" sitting on the Linux machine which i could contact and tell it to run the batch, what other options do i have ?
Thanks for any ideas
Alistair
Maybe not strictly a java question but... i have a Java program i am working on, it runs on a Windows PC and needs to do the following:
1.) Copy a file from windows to a Linux server
Easy enough, set up samba on linux and use java.io classes.
2.) Execute a batch file (.sh) on the Linux server which runs a program which does stuff on the server to the previously copied file
3.) Read data froma new file which has been created from step 2.)
Steps 1 and 3 are not a problem, however, i am stuck on 2. Any ideas ? I can't just run the batch file from windows as i want it to run on the server (not the machine that is calling the script). I didn't want to go down the route of having a java "server" sitting on the Linux machine which i could contact and tell it to run the batch, what other options do i have ?
Thanks for any ideas
Alistair