Writing to stdin from PHP?
问题 In linux I want to run a gnome zenity progress bar window from PHP. How zenity works is like this: linux-shell$ zenity --display 0:1 --progress --text='Backing up' --percentage=0 10 50 100 So the first command opens the zenity progress bar at 0 percent. Zenity then takes standard input numbers as the progress bar percentage (so it will go from 10% to 50% to 100% when you type those numbers in). I can't figure out how to get PHP to type in those numbers though, I have tried: exec($cmd); echo