*nix Thread, Help running scripts within scripts in Technical; Sometimes I get really frustrated when the diffs between Linux and MS catch me out
I'm trying to automate my ...
29th February 2008, 10:29 AM #1
Help running scripts within scripts
IDG Tech News
29th February 2008, 10:43 AM #2
add this as the second line of your script:
Read through the output carefully.
More info on the 'set' command can be found by typing 'help set' at your nearest console window.
29th February 2008, 10:50 AM #3
Possibly a slight typo in the above line?
Originally Posted by SimpleSi
29th February 2008, 11:01 AM #4
29th February 2008, 12:13 PM #5
Try running the script like this:
I typed in "help sh" and got
shift: shift [n]
The positional parameters from $N+1 ... are renamed to $1 ... If N is
not given, it is assumed to be 1.
shopt: shopt [-pqsu] [-o long-option] optname [optname...]
Toggle the values of variables controlling optional behavior.
The -s flag means to enable (set) each OPTNAME; the -u flag
unsets each OPTNAME. The -q flag suppresses output; the exit
status indicates whether each OPTNAME is set or unset. The -o
option restricts the OPTNAMEs to those defined for use with
`set -o'. With no options, or with the -p option, a list of all
settable options is displayed, with an indication of whether or
not each is set.
29th February 2008, 04:05 PM #6
29th February 2008, 04:58 PM #7
Ooops! Quite right, doesn't make much sense out-of-context! And it's actually wrong - my initial thought after running "help sh" in a terminal was that it was not Bash but something else. I should have used "man sh" - more descriptive. I'm not a Linux guru, but I have been using Ubuntu now for a few months.
You don't need to use "sh ./installnet.sh" if you make the script executable. In a terminal type:
then you can remove the "sh".
sudo chmod +x installnet.sh
If your script still won't work, paste the full output from the terminal here for us to examine.
7th March 2008, 09:23 AM #8
By FN-GM in forum Scripts
Last Post: 27th December 2007, 02:11 PM
By woody in forum Windows Vista
Last Post: 30th January 2007, 03:32 PM
By Kyle in forum How do you do....it?
Last Post: 13th October 2006, 07:54 AM
By wesleyw in forum Windows
Last Post: 17th July 2006, 02:36 PM
By catbert in forum Scripts
Last Post: 27th September 2005, 01:24 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)