Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-28-2008, 08:44 AM   #1
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Question Command line gnome file copy

I am looking for a way to start a file copy or move from the command line (i.e. a script). Of course, I can use cp and mv, but I would like to bring up the file operations dialog (I use gnome 2.22.1) that shows a progress bar. This would be very useful, because the script is designed to work from the nautilus right-click menu and it operates on very large video files. Opening the file operations dialog would make it integrate seamlessly into the desktop environement. In addition, not knowing how much time the operation will take is a major nuisance.
Old 05-29-2008, 05:48 PM   #2
Senior Member
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
GNOME actually comes with a command-line utility that lets shell scripts use GNOME file choosers, progress bars etc., called "zenity". The man page for zenity gives some examples of how to use it.
Old 05-30-2008, 10:55 AM   #3
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Original Poster
Rep: Reputation: 32
Thanks for the tip. I had a look at zenity and it seems simple enough, I'll be using it in a few other scripts. In this case however, the problem is that mv and cp have no way to report progress while copying the file, and therefore zenity can't make a dialog.


commandline, gnome

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
how to copy-past on command line? jameshao Linux - Newbie 5 02-01-2009 04:55 PM
Copy A File Off A CD To The Hard Drive In Command Line nickae77 Linux - Newbie 4 05-21-2004 05:38 AM
Copy text from command line Duukkis Linux - General 8 08-25-2003 02:29 PM
copy a cd from the command line illtbagu Linux - General 32 02-09-2003 08:08 PM
command line CDR / copy file rioguia Linux - Newbie 4 10-05-2002 05:52 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:02 AM.

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