RE: Program suggestion
Oh, I just ran into something where a small utility would help out. Basically I needed something that would be just like cp or mv, but would give the transfer rate of the file copy. Lot's of programs do this (scp, ftp, wget, etc...), but I don't think there is a way to have cp do it. I could use 'time', but that's no fun. :) Kyle Sexton ________________________________________ From: kclug-bounces@kclug.org [mailto:kclug-bounces@kclug.org] On Behalf Of Arthur Pemberton Sent: Monday, November 07, 2005 2:46 AM To: kclug@kclug.org; Dalug-list@dalug.dm Subject: Program suggestion Can anyone suggest a small application CLI or GUI that just seems to be "missing" from Linux? Not necessarily an application that exists in Windows, but not in Linux, but a program that would make some part of your Linux experience better. I am just dying to make a cool Linux app/project, but I am lacking ideas. For interface, I am considering console, GTK+ or Qt. For programming language, I am considering Python or C++; I appreciate your ideas. -- As a boy I jumped through Windows, as a man I play with Penguins.
If you don't mind running a file manager there's always Midnight Commander, which runs in text mode and very quickly, and which offers a transfer rate and estimated time to completion value as well. --- "Sexton, Kyle" <ksexton@gsihosting.com> wrote:
Oh, I just ran into something where a small utility would help out. Basically I needed something that would be just like cp or mv, but would give the transfer rate of the file copy. Lot's of programs do this (scp, ftp, wget, etc...), but I don't think there is a way to have cp do it. I could use 'time', but that's no fun. :)
Kyle Sexton
________________________________________ From: kclug-bounces@kclug.org [mailto:kclug-bounces@kclug.org] On Behalf Of Arthur Pemberton Sent: Monday, November 07, 2005 2:46 AM To: kclug@kclug.org; Dalug-list@dalug.dm Subject: Program suggestion
Can anyone suggest a small application CLI or GUI that just seems to be "missing" from Linux? Not necessarily an application that exists in Windows, but not in Linux, but a program that would make some part of your Linux experience better.
I am just dying to make a cool Linux app/project, but I am lacking ideas. For interface, I am considering console, GTK+ or Qt. For programming language, I am considering Python or C++;
I appreciate your ideas.
__________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
On 11/8/05, Sexton, Kyle <ksexton@gsihosting.com> wrote:
Oh, I just ran into something where a small utility would help out. Basically I needed something that would be just like cp or mv, but would give the transfer rate of the file copy. Lot's of programs do this (scp, ftp, wget, etc...), but I don't think there is a way to have cp do it. I could use 'time', but that's no fun. :)
Kyle Sexton
#!/usr/bin/perl ($source,$dest) = @ARGV; open S, "<$source" or die "opening $source for read: $!"; open D, ">$dest" or die "opening $dest for write: $!"; $time = time(); while(<S>){ $count++; $bytes += length($_); print '.'; if ($time != time()){ print "\n$count lines ($bytes chars) per second\n"; $bytes = $count = 0; $time = time(); }; print D $_; }; print "\n"; __END__ plenty of opportunities for fun in extending that :) -- David L Nicol A room without books is perfect for watching television
participants (3)
-
David Nicol -
Leo Mauler -
Sexton, Kyle