Computing.Net > Forums > Linux > help with shell script :)

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.

help with shell script :)

Reply to Message Icon

Name: Linda_1
Date: April 29, 2004 at 10:20:46 Pacific
OS: Solaris
CPU/Ram: unknown
Comment:

Hello guys,
I need help with writing a ksh, csh or bash script which will call another script and input arguments for the called upon script. The script wich I'm excuting is asking for input information such as choose 1, 2 .. and then further it asks for more inputs before it provides me with an answer. I need its final output for my script.

Thanks in advance
Linda



Sponsored Link
Ads by Google

Response Number 1
Name: taurus
Date: April 29, 2004 at 11:36:42 Pacific
Reply:

I think perl is probably a better choice of what you are thinking about... You should check out O'reilly's Learning Perl or Programming Perl. You can get a real good deal for both at amazon.com!

taurus


0

Response Number 2
Name: blanka
Date: April 29, 2004 at 12:02:23 Pacific
Reply:

the guy answered just because it's a girl. Guess I'm gonna change my nick to Pamela Anderson...


0

Response Number 3
Name: Wolfbone
Date: April 29, 2004 at 12:58:07 Pacific
Reply:

If this is a question about automating a script that already exists by running it from another script, your best bet is to use expect. You can generate a working script really easily with autoexpect.


0

Response Number 4
Name: taurus
Date: April 29, 2004 at 20:38:49 Pacific
Reply:

I don't know whether you want to be funny or an idiot!!! If you look at some of the posts on this forum, you would know that I answer to all names/people whenever I can! So, I don't care if you come from Mars and have a question about Linux, I would answer it too (if I feel like it)! So just you know. I don't care if your name is now Pamela Anderson! The lady has no talent except running her mouth and those silicon boobs... So, stop being an idiot and do something useful with your time.

taurus


0

Response Number 5
Name: 3Dave
Date: April 30, 2004 at 03:19:48 Pacific
Reply:

You can create simple user menus in bash, eg:

#!/bin/bash
OPTIONS="Hello Quit"
select opt in $OPTIONS; do
if [ "$opt" = "Quit" ]; then
echo done
exit
elif [ "$opt" = "Hello" ]; then
echo Hello World
else
clear
echo bad option
fi
done


Check out the Bash Programming Intro:
http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html

Perl is still a good idea, I tend to use it more than bash scripting just because I know it better.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: help with shell script :)

HELP with Shell Scripting www.computing.net/answers/linux/help-with-shell-scripting-/19953.html

Need Help with Basic Bash Script www.computing.net/answers/linux/need-help-with-basic-bash-script/18382.html

advanced shell script help www.computing.net/answers/linux/advanced-shell-script-help/17749.html