LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-06-2010, 01:05 PM   #31
kwanbis
LQ Newbie
 
Registered: Nov 2009
Posts: 17

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by David1357 View Post
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.

Last edited by kwanbis; 01-06-2010 at 01:10 PM.
 
  


Reply

Tags
echo, nautilus, scripts


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
suse 11.1 nautilus scripts not working NewDisciple SUSE / openSUSE 6 02-15-2009 01:10 PM
KDE equivalent of nautilus scripts? lethargy Linux - Software 2 12-27-2006 06:16 AM
Nautilus scripts Menu flebber Linux - General 1 11-28-2006 07:10 AM
Scripts in Nautilus 2.6 bramadams Slackware 1 07-26-2004 09:15 AM
gnome nautilus scripts verstapp Linux - Newbie 0 03-12-2004 04:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration