The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
coping directories? JamieMurry UNIX for Dummies Questions & Answers 2 04-09-2009 03:50 AM
cp not coping properly prashants Shell Programming and Scripting 1 11-19-2008 05:15 AM
pass curls progress/status data to a file scarfake Shell Programming and Scripting 0 05-31-2008 05:23 PM
Help analysing progress of a log file cosmos328is UNIX for Dummies Questions & Answers 4 10-11-2007 07:18 AM
knowing progress while reading a file sakthi.abdullah UNIX for Advanced & Expert Users 2 12-21-2006 11:03 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 4 Weeks Ago
frans's Avatar
frans frans is offline
Registered User
  
 

Join Date: Oct 2009
Location: Drôme, France
Posts: 131
zenity --progress ?
here a thread about using it in copying files.
what you have to do is to get the fullsize of the file and the size of what has already has beeen copied and then :

Code:
Fullsize=$(stat -c %s $file1)
(   
    CopiedBytes=$(stat -c %s $file2)
    let Percentage=CopiedBytes*100/Fullsize
    echo $Percentage
    sleep 1
) | zenity --progress --title="Copying files" --text="Copying $file1 to $file2" --percentage=0 --autoclose

Not tested but should work
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0