Computing.Net > Forums > Unix > Linux inout parameter in scrip

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Linux inout parameter in scrip

Reply to Message Icon

Name: hismail
Date: May 19, 2008 at 06:40:15 Pacific
OS: Redhat
CPU/Ram: 2/4
Product: Linux
Comment:

Hi
I would like to create a script that will prompt a user to change a parameter in the script before executing for eg:
/usr/snapshot-efb/snapshot -i 10.3.15.25 -a '/mnt/i/a/a' -2 482de0c2 -3 '/backup/medsys/' -x 7 restore
the number "482de0c2" needs to change if asked a question like: echo"enter new tag number"
when the number is entered it automatically enters the number in the script above.

thanks
Hamim



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: May 20, 2008 at 09:10:20 Pacific
Reply:

I don't understand your question. Are you asking for a method of always replacing string 482de0c2-3 with user input. Is 482de0c2-3 always a constant?


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Linux inout parameter in scrip

parameters in sed www.computing.net/answers/unix/parameters-in-sed/6942.html

using parameters in sed??? www.computing.net/answers/unix/using-parameters-in-sed/5783.html

Trouble with LINUX & video card in character cell mode www.computing.net/answers/unix/trouble-with-linux-amp-video-card-in-character-cell-mode/482.html