Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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!

  2. #2
    Just 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •