Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Why would you need to create a tar archive? Would it not be eough to just compress it with e.g. gzip? Commented May 5, 2019 at 11:40
  • I need to put multiple files into the archive which is not possible with gzip, but with tar and 7zip it is. Commented May 5, 2019 at 11:56
  • But if the data is coming in over the standard input stream, how would you distinguish the individual files? Or are you adding a file at a time by running the pipeline multiple times? What's the actual command at the start of your pipeline? Commented May 5, 2019 at 12:02
  • 2
    The actual command is a python script which uses convert and outputs a png to stdout. Yes, I wish to run the command several times, each time specifying a different filename. Commented May 5, 2019 at 12:32
  • How about just writing a shell script which wraps around tar and appends to the tar file? Or create a temporary file yourself. tar cannot append from stdin. Commented May 5, 2019 at 15:09