Results 1 to 2 of 2
Hi, I'm trying to use a program that accepts 2 files as input.
I need it to accept one of them as std-in and I don't know if it is ...
- 12-19-2011 #1Just Joined!
- Join Date
- Jun 2007
- Posts
- 9
Redirection help
Hi, I'm trying to use a program that accepts 2 files as input.
I need it to accept one of them as std-in and I don't know if it is possible and what pipe or redirection I need for it.
here is an example:
pdftk --background file-one.pdf --overlay file-two.pdf --output new-pdf.pdf
This fist example works with no problems, but I need "file-two.pdf" to be streamed from std-in.
I tried different pipes and redirections but I couldn't make it work.
Can you plase help?
Thanks for your time!
- 12-20-2011 #2Just Joined!
- Join Date
- Nov 2011
- Location
- New Zealand
- Posts
- 79
Just guessing but would this work,
pdftk --background file-one.pdf cat output new-pdf.pdf < file-two.pdf


Reply With Quote