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 :)
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.
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.
Summary: I need some help with a BASH script. I am just learning shell scripting and this assignment I have been given is difficult. Anyone that can help it would be greatly appreciated. I need to create a BA...
Summary: I need help with this basic script writing using bash shell. I just started using Linux and the company I work for is trying to instill this system. How do I write a script that will create a menu to ...
Summary: i need help with a shell script that passes a variable. why does this not work?: echo $`echo 1` i want this to produce the same result as echo $1 but instead of the first option given at the command...