@sixfootseven - try now please :)
Printable View
@sixfootseven - try now please :)
It worked for me, so whatever Elfy did, it worked. I changed it back to unsolved, so the op could do it.
This method creates a temp file (results). Don't forget to delete it.
The basic method of dealing with temp files is something like:
But, in this case there is no need for a temp file. You can pipe directly the stderr of whiptail to the while loop.Code:...
tempfile=$(mktemp)
trap 'rm -f "$tempfile"' EXIT
whiptail ... 2> "$tempfile"
while read -r line
do
...
done < "$tempfile"
...
Code:whiptail ... 2>&1 | while read -r choice ...
Thanks everyone, I appreciate the continued help with whiptail. My little script is getting rather huge. Can't wait to show it off.
I guess I should learn python and implement the results in there instead at some point!
I am now able to mark this thread as solved, and have done so.
Excellent - that worked then :)