Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
--timeout feature for read command?
2016-05-04, 14:00
Post: #1
--timeout feature for read command?
Hi,

I was wondering if it's possible to add --timeout to the read command - similar to how the prompt command works?

I have an ipxe script that starts with read. It will goto the corresponding section when the user types the proper text, else it goes back to start. I would like it to timeout to a certain section after a period of time with no input.

Thanks
Find all posts by this user
Quote this message in a reply
2016-05-10, 09:59
Post: #2
RE: --timeout feature for read command?
(2016-05-04 14:00)bikester Wrote:  I was wondering if it's possible to add --timeout to the read command - similar to how the prompt command works?

I have an ipxe script that starts with read. It will goto the corresponding section when the user types the proper text, else it goes back to start. I would like it to timeout to a certain section after a period of time with no input.

Start the script with a menu or a prompt, both of which allow a timeout to be specified, and drop to the read command only when the user has indicated that they want to provide the input?

Alternatively, a patch which adds this functionality cleanly will probably be merged.

Michael
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)