+ Post New Thread
Results 1 to 3 of 3
How do you do....it? Thread, Batch File to Shell Script in Technical; Good day everyone! I am new to Ubuntu specifically in shell scripting. I would like to ask how or what ...
  1. #1

    Join Date
    Apr 2012
    Location
    World Wide Web
    Posts
    3
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Batch File to Shell Script

    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! =)

  2. #2


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    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/Mo...resPermanently

    rest is:

    set -v off
    clear
    cd /path_to_smb_mount/
    java -jar Aqua.jar

  3. Thanks to CyberNerd from:

    juanlansang (26th April 2012)

  4. #3

    Join Date
    Apr 2012
    Location
    World Wide Web
    Posts
    3
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks CyberNerd! I have learn something regarding mounting of shares. I'll try to make some new scripting now.

SHARE:
+ Post New Thread

Similar Threads

  1. Help with beginner script/batch file to rename Program File?
    By El_Nombre in forum How do you do....it?
    Replies: 3
    Last Post: 23rd June 2011, 02:05 PM
  2. dos batch file to whs script
    By davidm in forum Windows
    Replies: 3
    Last Post: 26th March 2009, 09:37 PM
  3. Batch file to remove registry key doesnt work
    By sidewinder in forum Windows
    Replies: 4
    Last Post: 7th December 2007, 04:48 PM
  4. batch file to shutdown PCs
    By macca in forum Windows
    Replies: 5
    Last Post: 3rd May 2007, 09:20 AM
  5. prezzie batch file to collect dps logs
    By russdev in forum ICT KS3 SATS Tests
    Replies: 4
    Last Post: 16th May 2006, 12:16 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •