Ghostscript - Bleib im interaktiven Modus

626
hymie

Wenn ich Postscript-Daten in das gsProgramm übertrage, werden gsdie Daten interpretiert und sofort beendet. Dies stimmt mit der Manpage überein:

 - This is not really a switch, but indicates to Ghostscript that standard input is coming from a file or a pipe and not interac- tively from the command line. Ghostscript reads from standard input until it reaches end-of-file, executing it like any other file, and then continues with processing the command line. When the command line has been entirely processed, Ghostscript exits rather than going into its interactive mode. 

Gibt es eine Möglichkeit, die ich gsals Pipe in den interaktiven Modus zwingen kann ? Ich weiß, dass ich meine Daten in eine temporäre Datei kopieren kann, die temporäre Datei ausführen gs tempfileund dann entfernen kann, aber ich würde es vorziehen, alles in einem Schritt zu tun.

2

1 Antwort auf die Frage

1
thymusvulgaris

Verwenden Sie gs <(program_writing_ps_to_sdout)

Kannst du erklären, wie das funktioniert? music2myear vor 7 Jahren 3
@ music2myear - das <() - Konstrukt bedeutet "den Befehl in Klammern ausführen ... und dann sollte der Hauptbefehl so tun, als ob die Ausgabe aus einer Datei stammt." hymie vor 7 Jahren 0