LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-20-2008, 06:29 AM   #1
catholiclibertarian
LQ Newbie
 
Registered: Feb 2008
Location: Detroit, MI, USA
Distribution: Xubuntu 8.10; DSL 4.2.5
Posts: 17

Rep: Reputation: 0
Print Directory command


I'm looking to find a command from within terminal that will give me something along the lines of

print all images /entire-path/to-directory

ideally bringing up the GUI to allow me to choose which printer etc. (so I can choose if I want to print to PDF or to CUPS) it simply takes too long to open each photo, FILE, PRINT
 
Old 12-20-2008, 09:12 AM   #2
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Rep: Reputation: 31
i thinks not. U can use lpr command to print a single OR more.

Quote:
lpr file1 file2 file 3
 
Old 12-20-2008, 09:03 PM   #3
catholiclibertarian
LQ Newbie
 
Registered: Feb 2008
Location: Detroit, MI, USA
Distribution: Xubuntu 8.10; DSL 4.2.5
Posts: 17

Original Poster
Rep: Reputation: 0
is there not a way to edit lpr to allow it to print the whole directory, at least if the directory only includes images?

how about an option of selecting multiple files in thunar (or konqueror, etc.) and then right clicking and select print.

Could creating a shortcut to lpr within the right click menu give me this option?
 
Old 12-21-2008, 06:33 AM   #4
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Rep: Reputation: 31
I m confused some other may help you.
 
Old 12-21-2008, 06:53 AM   #5
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
With Nautilus you can right-click "open with" choose "open with another application" type lpr

Then when you right-click "open with" choose "open with lpr"

From a command line if you wanted to print all jpg files you could:
Code:
for file in $(ls *.jpg); do
   lpr $file
done
 
Old 12-21-2008, 07:24 AM   #6
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,147

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Or, even simpler, lpr *.jpg. But that assumes that all you image files have a jpg extension.

If, instead, you wanted to print every file in, say, an "images" sub-directory of your current directory, you could do a lpr images/* or something similar. See info bash under "Basic Shell Features" in the "Shell Expansion" section for a description of how the shell expands things like "*" and so on.

Also, look at man lpr for a description of the lpr command options.

Last edited by PTrenholme; 12-21-2008 at 07:26 AM.
 
Old 12-21-2008, 11:47 AM   #7
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 647

Rep: Reputation: 52
It seems what you want is a graphical program to select which images to print- kind of like WinXP does.

Try Picassa for Linux- I'm pretty sure it allows you to do that.
 
Old 12-21-2008, 06:51 PM   #8
upchucky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 113

Rep: Reputation: 16
i think fspot also lets u do that and name time date stamp them too
 
Old 12-22-2008, 05:41 PM   #9
catholiclibertarian
LQ Newbie
 
Registered: Feb 2008
Location: Detroit, MI, USA
Distribution: Xubuntu 8.10; DSL 4.2.5
Posts: 17

Original Poster
Rep: Reputation: 0
I actually would prefer to do it from the command line. Thanks for the assistance! I can't wait to try it.
 
  


Reply

Tags
command, cups, pdf, print


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
Find/grep command to find matching files, print filename, then print matching content stefanlasiewski Programming 8 12-18-2013 05:36 PM
i want to print all the files in a directory and the file size in a same line naveen245 Programming 3 12-06-2005 08:22 AM
Print size of directory FarAway Linux - Software 1 07-13-2005 01:15 PM
Print directory list command AlexCPU Linux - Newbie 5 11-07-2004 03:41 PM
print listing of directory harnadem Linux - Newbie 2 04-25-2004 09:35 PM


All times are GMT -5. The time now is 03:08 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration