iPXE discussion forum

Full Version: --timeout feature for read command?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
(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
Reference URL's