SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2009-08-21 11:31:24

iDIEDaLONGtimeAGO
Member
Registered: 2009-07-27
Posts: 32

Display file copy speed

Is it posssible to display the speed and time remaining when copying/moving files & folders like u can in the full-blown DE's. Somehow it just psyches me up seeing a fast transfer speed. big_smile .
Thanks


Big mouth  don't  make a big man

Offline

Help fund CrunchBang, donate to the project!

#2 2009-08-21 14:25:25

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: Display file copy speed

I *think* this is controlled by the File Manager not DE. I know Thunar shows time remaining within the progress bar.

Offline

#3 2009-08-21 14:58:12

Mehall
#! Die Hard
From: Scotland, Cold
Registered: 2009-01-17
Posts: 850
Website

Re: Display file copy speed

estimation.png


Ex-KDE user.
Collects old PC's (Coz he can't afford new ones =P)
Crunchbang @ Distrowatch
My Blog (updated infrequently, and on the #! Planet too.)

Offline

#4 2009-08-21 18:19:55

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,081
Website

Re: Display file copy speed

anonymous wrote:

I *think* this is controlled by the File Manager not DE. I know Thunar shows time remaining within the progress bar.

I think you are correct. I wonder whether this feature is going to be improved for future version of PCManFM?

Mehall wrote:

estimation.png

Too funny! big_smile


Ex-developer of #! CrunchBang. Follow me on Twitter smile

Offline

#5 2009-08-22 00:11:07

iDIEDaLONGtimeAGO
Member
Registered: 2009-07-27
Posts: 32

Re: Display file copy speed

So, to get what i want, i have to opt for nautilus.......hmmmmmmmmmm lol
I guess i can live without it .:)


Big mouth  don't  make a big man

Offline

#6 2009-08-22 08:23:17

iggykoopa
Script Master
Registered: 2008-12-13
Posts: 1,486

Re: Display file copy speed

I believe thunar can do it as well. Also I've seen some bash scripts that can do it on the command line, I could try to clean one of those up if you use cp much. Here is an example one, I dont really recommend it because it's just a progress bar and doesn't handle spaces in file names.

#!/bin/bash
# File copy with progress indicators
# Example: ./test original_file destination_file

usage()
{
   echo "Usage: $0 original_file destination_file"
   exit 1;
}

test $# == 2 || usage

echo Preparing to copy
orig_size=$(stat -c %s $1)

>$2
dest_size=0
cp -f $1 $2 &

while [ $orig_size -gt $dest_size ] ; do
   dest_size=$(stat -c %s $2)
   pct=$((( 100 * $dest_size ) / $orig_size ))

if [ $pct -lt 10 ] ; then
   echo -en "#  $pct%\b\b\b\b"
else
   echo -en "#  $pct%\b\b\b\b\b"
fi
sleep 1
done
echo

if people are interested I would probably switch it to python and add transfer speed.


I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Offline

#7 2009-08-24 10:16:45

iDIEDaLONGtimeAGO
Member
Registered: 2009-07-27
Posts: 32

Re: Display file copy speed

iggykoopa wrote:

I believe thunar can do it as well. Also I've seen some bash scripts that can do it on the command line, I could try to clean one of those up if you use cp much. Here is an example one, I dont really recommend it because it's just a progress bar and doesn't handle spaces in file names.

#!/bin/bash
# File copy with progress indicators
# Example: ./test original_file destination_file

usage()
{
   echo "Usage: $0 original_file destination_file"
   exit 1;
}

test $# == 2 || usage

echo Preparing to copy
orig_size=$(stat -c %s $1)

>$2
dest_size=0
cp -f $1 $2 &

while [ $orig_size -gt $dest_size ] ; do
   dest_size=$(stat -c %s $2)
   pct=$((( 100 * $dest_size ) / $orig_size ))

if [ $pct -lt 10 ] ; then
   echo -en "#  $pct%\b\b\b\b"
else
   echo -en "#  $pct%\b\b\b\b\b"
fi
sleep 1
done
echo

if people are interested I would probably switch it to python and add transfer speed.

everyway in which u help is welcome. Interestingly, i just felt that moving files via pcman was signifantly faster  than nautilus or even thunar. The only reason i want a speed display is because i tend to open up a lot of things and so i can easily make out when im slowing the file operations down. And i have to transfer a lot of photos and videos almost everyday, so it is tedious task


Big mouth  don't  make a big man

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo