pdftocar: How to save the help text in text file from the prompt?

Asked

Viewed 95 times

1

I would like to save the help text of the program pdftocairo located in the installation subfolders of the MiKTeX for Windows.

captura de tela

The command pdftocairo --help > help_pdftocairo.txt, which should create the archive help_pdftocairo.txt with the help content (as here), actually creates a blank file.

Any idea how to proceed?

1 answer

2



inserir a descrição da imagem aqui

It is a specific case where the exit leads via stderr = 2> and didn’t see stdout = 1>, use 2>


What worked here with in the case of pdftocairo.exe --help was:

2>pdftocairo.txt pdftocairo --help

Since this program has the route directed output stderr and not stdout, then, it will only record the desired content if it treat as error capture(stderr), and not a normal exit(stdout).

Browser other questions tagged

You are not signed in. Login or sign up in order to post.