|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
reading command output from shell script
Hi List,
How to read the output of a command executed from a script. For ex. sample_scritp.sh ------------- useradd testuser1 password testuser1 .... ..... -------------- This prompts for "password", and "confirm password", for which i need to give the values from script. Can anyone pls suggest a way to do this. Thanks in advance |
| Sponsored Links |
|
|
|
|||
|
Okey.
Can Shell script directly call Expect code?i.e can we write Expect code as part of the Shell script or we need write it in a seperate file and execute it. Pls suggest some links for expect. Regards, Sri |
|
||||
|
Here you go: google search for 'man expect'.
|
|
|||
|
Hi All,
I am just learning shell scripting. I have a simple script (test.sh) # !/bin/sh echo "Enter your name" read name echo "Your name is $name" in linux terminal I do echo Tony | ./test.sh then it prints out "Your name is Tony" but when I run it through hyperterminal (that I connected from WinXP machine) then it doesn't work. I'd like to have your help. Thanks |
| Sponsored Links |
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| reading XML datas via Shell Script | freepal | Shell Programming and Scripting | 1 | 02-08-2008 11:52 AM |
| Reading the output of df command | nervous | UNIX for Dummies Questions & Answers | 7 | 08-05-2007 01:53 PM |
| Q: Recording shell script screen output using "script" command ? | lalfonso.gomez | Shell Programming and Scripting | 4 | 01-18-2007 09:31 PM |
| Reading a table in a shell script | luiscarvalheiro | Shell Programming and Scripting | 13 | 08-10-2006 07:16 PM |
| Capturing shell script command output | designflaw | Shell Programming and Scripting | 2 | 03-01-2006 04:24 PM |