Quote:
Originally Posted by David1357
I guess I was assuming you would change your script to be something like this
Code:
#!/bin/sh
(
unrar-command | sed -e 's/\([0-9]*\)%/\n\1\n/g'
) |
zenity --progress \
--title="Actualizando los registros del sistema" \
--text="Rastreando los registros de los correos..." \
--percentage=0
if [ "$?" = -1 ] ; then
zenity --error \
--text="Actualización cancelada."
fi
|
Oh, i did that.
It looks like the problem is related to how unrar outputs the information.
It was actually like this:
~/xtractor/unrar x "$fullName" "$fullFolder/" | sed -e 's/\([0-9]*\)%/\n\1#\n/g' | (zenity --progress --auto-kill --text="Extracting...")
(noticed there is a difference between this sed command and the other)
But as i said, it would wait for unrar to end, and then would do a very beautiful update.
I did not use the GREP.