Computing.Net > Forums > Unix > batch files in Unix from Telnet

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.

batch files in Unix from Telnet

Reply to Message Icon

Name: pmsarosi
Date: June 15, 2004 at 10:34:52 Pacific
OS: Unix
CPU/Ram: Mac computer
Comment:

I need a batch file that contains input data from a
program that asks for this data using multiple prompts.
So I guess I just need the initial line or two that starts the
ball rolling.

E.g. One line from the program asks for three inputs
(1 1 2 say) then you hit enter and the next line asks for
one input (10 say) an so on I can have all the data in one
batch file.

P.S. I am very new to this. It is my first time using Unix
etc.

Peter Sodowski



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: June 16, 2004 at 04:26:26 Pacific
Reply:

read parms2?"Please enter 3 values? "
set -- `echo $parms2`
echo "Value 1 $1"
echo "Value 2 $2"
echo "Value 3 $3"
read parms1?"Please enter 1 value? "
echo "Last answer $parms1"


0
Reply to Message Icon

Related Posts

See More


Need accss to Unix oracle on unix



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: batch files in Unix from Telnet

Variable Block file in Unix www.computing.net/answers/unix/variable-block-file-in-unix/3532.html

how to read binary files in Unix www.computing.net/answers/unix/how-to-read-binary-files-in-unix/4566.html

Where to find c head files in unix system? No content www.computing.net/answers/unix/where-to-find-c-head-files-in-unix-system-no-content/957.html