Output of command in Bash script to Drop-down box?

前端 未结 2 688
青春惊慌失措
青春惊慌失措 2021-01-28 03:03

First off, I appreciate any and all help in answering this question. I have a command in a bash script that will output the following:

255 254 253 252 ... 7 6 5          


        
2条回答
  •  醉话见心
    2021-01-28 03:59

    I've always found this site useful when fiddling with shell scripts: http://tldp.org/LDP/abs/html/

    you'll have to get your output into an array using some sort of string manipulation using the spaces as delimiters, then loop over that to build some html output - so the return value will basically just output your select box on the page where you execute your cgi/bash script.

    -sean

提交回复
热议问题