Hi,
I want to use zenity --progress and also put the output to the terminal.
I tried using the tee command but that puts the output to the terminal first and then shows the zenity progress dialog.
Take the normal example by the gnome manual:
(
echo "10" ; sleep 1
echo "# Updating mail logs" ; sleep 1
echo "20" ; sleep 1
echo "# Resetting cron jobs" ; sleep 1
echo "50" ; sleep 1
echo "This line will just be ignored" ; sleep 1
echo "75" ; sleep 1
echo "# Rebooting system" ; sleep 1
echo "100" ; sleep 1
) | tee zenity --progress \
--title="Update System Logs" \
--text="Scanning mail logs..." \
--percentage=0
Is there any method to do both simultaneously?
---------- Post updated 07-07-11 at 01:25 AM ---------- Previous update was 07-06-11 at 04:07 AM ----------
Looks like nobody has got any solution??
The original code is this:
#!/bin/sh
(
echo "10" ; sleep 1
echo "# Updating mail logs" ; sleep 1
echo "20" ; sleep 1
echo "# Resetting cron jobs" ; sleep 1
echo "50" ; sleep 1
echo "This line will just be ignored" ; sleep 1
echo "75" ; sleep 1
echo "# Rebooting system" ; sleep 1
echo "100" ; sleep 1
) | zenity --progress \
--title="Update System Logs" \
--text="Scanning mail logs..." \
--percentage=0
I want the output to be printed on the terminal also. Any solutions??