[NTLUG:Discuss] bash Script help

Rusty Haddock rusty at fe2o3.lonestar.org
Wed Aug 28 15:12:22 CDT 2013


Steve Litt wrote:
    >> 
    >> ./FactoryRestore.sh&
    >> ==================
    >
    >I'm not going to try to reverse engineer your code to hypothesize the
    >root cause, but I can tell you how to narrow it down. Divide and
    >Conquer.
    >
    >I'd start by removing everything but the echo and
    >the ./FactoryRestore.sh&.
    >
    >By the way, I've never seen the & at the end of a command without a
    >space preceding it. Just for fun, put in a space.

Nah, the ampersand is a special character when the command line is
parsed by the shell -- unless it's escaped or inside a quoting mechanism.
So, no space is needed.

Is the FactoryRestore.sh script file chmod'd +x (ie are the execute bits
turned on) ???   If not, it could be or just call the script with

    sh ./FactoryRestore.sh&

	-Rusty-
-- 
   _____                Rusty Haddock  <=>  AE5AE
|\/   o \   o             Way out yonder in the
|   (  -<  O o      Van Alstyne (TX) Metropolitan Area
|/\__V__/       Math illiteracy affects 7 out of 5 people!



More information about the Discuss mailing list