[SLE] user input bash scripting

From: Chadley Wilson (chadley_at_ngn.co.za)
Date: 08/29/05

  • Next message: mlist_at_safenet-inc.com: "RE: [SLE] Seeking help with mail-server setup"
    To: suse-linux-e@suse.com
    Date: Mon, 29 Aug 2005 19:59:16 +0200
    
    

    Greetings,,,

    Mmmm, I hit a blank

    I know how to use read in conbination with echo, but have forgotten what we
    use for passing parameters to a script:

    for example
    If I write script called hello

    you would executei it like so :

    ./hello James

    capture James as a variable,,,, etc

    I just can't remeber how to do it.

    Please Help

    Thanks

    -- 
    --
    Chadley Wilson
    Production Line Superintendant
    Pinnacle Micro
    Manufacturers of Proline Computers
    ====================================
    Exercise freedom, Use LINUX
    =====================================
    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: mlist_at_safenet-inc.com: "RE: [SLE] Seeking help with mail-server setup"

    Relevant Pages

    • Re: [SLE] user input bash scripting
      ... > I know how to use read in conbination with echo, ... > we use for passing parameters to a script: ... > capture James as a variable,,,, etc ... read VAR ...
      (SuSE)
    • Re: [Full-disclosure] reduction of brute force login attempts via SSHthrough iptables --
      ... Anyhow its no problem at all to modify, so if you dont like it, just dont use it. ... on a lame script like this as long as it WORKS and is not insecure. ... echo "~ sorting out ip by ip" ... # echo "not enough failed logins, probably no attack from: ...
      (Full-Disclosure)
    • Ripping Tapes with Linux--How To
      ... the full script is located in the BASH ... My tape player is a portable style journalist's recorder from the ... The most irritating part of the recording process was setting the ... echo Starting de-noise procedure to file $TMP1 ...
      (comp.os.linux.misc)
    • Re: Linux Backup with Modification Date Filter?
      ... I wrote a bash script that acts as a wrapper to rsnapshot which first ... generates a modification-date filter, ...
      (comp.os.linux.misc)
    • Re: Command Script variable value lost during execution
      ... The value of RC_ver is numeric but ECHO would return it numeric or not... ... I checked ERRORLEVEL at the end of the script and it was 0 but again ... ECHO RoboCopy version xxx%RC_Ver%yyy ... CALL:GetRCVer RoboCopy.exe /Path ...
      (microsoft.public.windows.server.scripting)