Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'arguments to shell scripts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
arguments to shell scripts
Authored by: jzsimon on Feb 24, '03 09:59:21AM

Try my script above for using pdf2ps. It works very nicely for me.

If you have trouble, you can always examine the log file it creates on the Desktop for errors, or problems with which argument (3rd vs. last) contains the file name.

p.s. Despite my last comment in the code posting, it does correctly remove the temp pdf file.



[ Reply to This | # ]
arguments to shell scripts
Authored by: ssevenup on Feb 26, '03 05:41:23PM

I get "TERM_PROGRAM: Undefined variable." in the Console log.

---
Mark Moorcroft
ELORET Corp. - NASA/Ames RC
Sys. Admin.



[ Reply to This | # ]
arguments to shell scripts
Authored by: jzsimon on Feb 26, '03 05:59:20PM

That's a different problem. Read this (and comments) to solve that bug:
http://www.macosxhints.com/article.php?story=20020826003806202



[ Reply to This | # ]
arguments to shell scripts
Authored by: ssevenup on Feb 27, '03 04:17:23PM

Thanks for the tip, I solved that and now unless I comment out the line that dumps arg#2 into the log, the script pukes with "unknown user ./" or some such after dumping the majority of the CUPs arguments. Otherwise I can produce a .ps file, and even pipe it back through ps2pdf. I am posting a seperate note on that subject. By the way the tips for setting up the tcsh environment worked, but I had a heck of a time forcing the path to include "/usr/local/bin". I actually had to add it with ~/Library/init/tcsh/rc.mine because it wasn't getting picked up as expected?

---
Mark Moorcroft
ELORET Corp. - NASA/Ames RC
Sys. Admin.



[ Reply to This | # ]