By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,390 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,390 IT Pros & Developers. It's quick & easy.

Need user input for script

P: 1
I am currently editing a script.

I need to get user input such as please enter the 8 digit code.

The next part of the script runs but inserts the 8 digit code into a spot in the script.

I thought I could maybe get the user to enter the 8 digit number. The script could then send the user input to a file, and then read from that file. If it could insert the user input into the spot exectly that would be even better.

Sincerely

Jeremy
Feb 1 '08 #1
Share this Question
Share on Google+
1 Reply

numberwhun
Expert Mod 2.5K+
P: 3,503
I am currently editing a script.

I need to get user input such as please enter the 8 digit code.

The next part of the script runs but inserts the 8 digit code into a spot in the script.

I thought I could maybe get the user to enter the 8 digit number. The script could then send the user input to a file, and then read from that file. If it could insert the user input into the spot exectly that would be even better.

Sincerely

Jeremy
To get user input in a script you would use "read". Here is an example of how to use it.

Regards,

Jeff
Feb 1 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.