iPXE discussion forum
--timeout feature for read command? - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: --timeout feature for read command? (/showthread.php?tid=8059)



--timeout feature for read command? - bikester - 2016-05-04 14:00

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


RE: --timeout feature for read command? - mcb30 - 2016-05-10 09:59

(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