juanlansang Posted April 21, 2012 Report Posted April 21, 2012 Good day everyone! I am new to Ubuntu specifically in shell scripting. I would like to ask how or what is the equivalent of this batch file to a shell script. echo off cls pushd \\JO501\d\Soft\ABC java -jar Aqua.jar echo on JO501 - Computer Name [ Windows OS ] in drive "d", folder Soft the folder ABC I hope someone could help me with this problem. And I would like also to ask if it is possible that I can run a file from UBUNTU to a Windows network like JAR files. Thanks in advance! =)
CyberNerd Posted April 21, 2012 Report Posted April 21, 2012 you really need to mount the share first, then run the java executable as if it were local. I can't think how to run it remotely without mounting first - you certainly can't do it with smbclient. mount the share (outside of the script) https://help.ubuntu.com/community/MountWindowsSharesPermanently rest is: set -v off clear cd /path_to_smb_mount/ java -jar Aqua.jar 1
juanlansang Posted April 26, 2012 Author Report Posted April 26, 2012 Thanks CyberNerd! I have learn something regarding mounting of shares. I'll try to make some new scripting now.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now