iPXE discussion forum
Echo text to file? - Printable Version

+- iPXE discussion forum (http://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Echo text to file? (/showthread.php?tid=10374)



Echo text to file? - ryanoa - 2017-10-10 18:53

Is it possible to echo text to a file from my iPXE menu as in a bash script?

i.e..

#!ipxe
echo ${serial} >> http://X.X.X.X/logs/logfile.txt


RE: Echo text to file? - NiKiZe - 2017-10-11 22:16

If you want to output to something on a http server, use a server-side script to collect the data.
If you need to send more data then just a few strings, then you can use http://ipxe.org/cmd/param

If you want something that you use as initrd contents, that is also not supported.