LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-27-2013, 01:30 PM   #1
Predatorian
Member
 
Registered: Mar 2008
Location: currently, where ever the army takes me
Distribution: Debian Lenny/Ubuntu or Arch Linux
Posts: 143

Rep: Reputation: 26
OSX - command not working properly


I am sick of registering for forums upon forums, so I'm coming here.

I keep getting this error when trying to convert a series of gif's to pdf's. I can do it one by one, but I have 200 gif's i'm trying to make into PDF's so I can combine them.

Code:
for i in *.gif; do sips -s format pdf $i --out test/$i.pdf;done
Code:
Error 10: out_dir_not_found /Users/haylon/Desktop/Battletech/Technical Readouts/Tech readout 2750/test/test
Try 'sips --help' for help using this tool


--EDIT--

Remove the test/ in front of the $i and it works. I couldn't find the delete button for this, so, I apologize if I look stupid.

Last edited by Predatorian; 04-27-2013 at 01:33 PM.
 
Old 04-28-2013, 05:46 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,457
Blog Entries: 54

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
Quote:
Originally Posted by Predatorian View Post
Remove the test/ in front of the $i and it works.
Thanks for sharing.


Quote:
Originally Posted by Predatorian View Post
I couldn't find the delete button for this, so, I apologize if I look stupid.
Post contents should not be deleted, made illegible or otherwise mutilated because others may learn from it and its responses (if any).
You shared your fix, that's good and that's all that matters.
Asking isn't stupid, not asking is.


BTW this would create a subdirectory "output" if it doesn't exist and output the PDF there:
Code:
find /some/path -type f -iname \*.gif | while read ITEM; do
 OUT_DIR="$(dirname "${ITEM}")/output"; [ -d "${OUT_DIR}" ] || mkdir "${OUT_DIR}"
 OUT_FILE="$(basename "${ITEM}" .gif)"
 sips -s format pdf "${ITEM}" --out "${OUT_DIR}/${OUT_FILE}.pdf"
done
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ptrace system command not working properly in x86 platform shankarsrinivas Programming 1 05-01-2011 05:01 PM
usermod command not working properly ! noony123 Linux - Newbie 8 03-23-2011 06:16 AM
ls -la command output is not working properly ratul_11 General 1 02-27-2008 12:38 PM
message command in smb.conf not working properly kamransoomro84 Linux - Desktop 0 11-07-2006 12:51 PM
Autostart command not working properly dstjames Linux - Newbie 2 01-10-2006 02:25 PM


All times are GMT -5. The time now is 07:44 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