LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-28-2008, 07:44 AM   #1
stefan_nicolau
Member
 
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, 04:48 PM   #2
hob
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, 09:55 AM   #3
stefan_nicolau
Member
 
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.
 
  


Reply

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:53 AM.

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