LinuxQuestions.org
Social Bookmarking all things Linux and Open Source
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 05-28-2008, 08:44 AM   #1
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529
Thanked: 0
Question Command line gnome file copy


[Log in to get rid of this advertisement]
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.
stefan_nicolau is offline  
Tag This Post , ,
Reply With Quote
Old 05-29-2008, 05:48 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075
Thanked: 0
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.
hob is offline  
Tag This Post
Reply With Quote
Old 05-30-2008, 10:55 AM   #3
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529
Thanked: 0

Original Poster
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.
stefan_nicolau is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 01:23 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration