Announcement

Collapse
No announcement yet.

More batch script help

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    More batch script help

    script titled "UO"
    #!/bin/sh
    echo NOW: LOADING UO
    cd /home/ant2ne/.wine/drive_c/"Program Files"/"EA Games"/"Ultima Online 9th Anniversary Collection"/
    sudo wine client.exe
    echo NOW: LOADING EasyUO
    sudo wine /home/ant2ne/.wine/drive_c/"Program Files"/"EA Games"/euox/UOeasy/euox.exe
    with this script I can load the first program, but the second wont load until the first is shut down. How do I let the script continue without "finishing" a command?
    Registered Linux User: 450747<br />Registered Ubuntu User: 16269

    #2
    Re: More batch script help

    Originally posted by Ant2ne
    script titled "UO"
    #!/bin/sh
    echo NOW: LOADING UO
    cd /home/ant2ne/.wine/drive_c/"Program Files"/"EA Games"/"Ultima Online 9th Anniversary Collection"/
    sudo wine client.exe &
    echo NOW: LOADING EasyUO
    sudo wine /home/ant2ne/.wine/drive_c/"Program Files"/"EA Games"/euox/UOeasy/euox.exe
    with this script I can load the first program, but the second wont load until the first is shut down. How do I let the script continue without "finishing" a command?

    Comment


      #3
      Re: More batch script help

      8) (We need a thumbs up gif)
      Registered Linux User: 450747<br />Registered Ubuntu User: 16269

      Comment


        #4
        Re: More batch script help

        little snag

        when i run my batch titled uo
        ant2ne@ant2ne-laptop:~$ uo
        NOW: Loading UO
        NOW: Loadin EasyUO
        ant2ne@ant2ne-laptop:~$ Password:
        sudo: pam_authenticate: Conversation error
        Password:
        sudo: pam_authenticate: Conversation error
        I don't know why, but the & is making it skip the pause for me to enter my password. Suggestions?
        Registered Linux User: 450747<br />Registered Ubuntu User: 16269

        Comment


          #5
          Re: More batch script help

          Originally posted by Ant2ne
          Suggestions?
          sudo theWholeScript.sh 8)

          Comment


            #6
            Re: More batch script help

            good idea.

            Do i need to name the script with the .sh? does that do anything?
            Registered Linux User: 450747<br />Registered Ubuntu User: 16269

            Comment


              #7
              Re: More batch script help

              Do i need to name the script with the .sh? does that do anything?
              No, but I would suggest changing the shebang from "/bin/sh" to "/bin/bash". Just good programming practice.

              Comment


                #8
                Re: More batch script help

                Originally posted by askrieger
                I would suggest changing the shebang from "/bin/sh" to "/bin/bash"

                Comment


                  #9
                  Re: More batch script help

                  Shebang: Used to describe the header line of shell scripts from the habit of programmers calling the Octothorp character '#', "hash" and the exclamation point '!', "bang". Hence the first two characters of any script "#!" = "hash-bang" -->"shebang".

                  Comment

                  Working...
                  X