Results 1 to 3 of 3

Thread: [SOLVED] Easy script - I thought

  1. #1
    Join Date
    May 2008
    Location
    East Coast, USA
    Beans
    104
    Distro
    Ubuntu 14.04 Trusty Tahr

    [SOLVED] Easy script - I thought

    I'd like to create a little script to run three commands in order. So I did this:

    Code:
    #!/bin/sh
    
    /home/jim/oracle/product/10.2.0/db_1/bin/lsnrctl start
    /home/jim/oracle/product/10.2.0/db_1/bin/dbstart
    /home/jim/oracle/product/10.2.0/db_1/bin/emctl start dbconsole
    The commands work when I just enter them at the command line and they do admittedly take a few momemts each to run. I was hopeful when I ran it and my mouse did that 'circly' thing indicating that something was running, but alas I was not to be.

    Any help would be appreciated.

    Thanks!!
    Love the people that hate you.
    It really pisses them off.

  2. #2
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Easy script - I thought

    Did you make the script executable?
    Code:
    cd directorythathasscriptinit
    chmod +x scriptname

  3. #3
    Join Date
    May 2008
    Location
    East Coast, USA
    Beans
    104
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Easy script - I thought

    That was it but I did it as:

    Code:
    chmod 750 orastart.sh
    I'll get the hang of this eventually!

    Thanks!
    Love the people that hate you.
    It really pisses them off.

Bookmarks

Posting Permissions

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