linux - How to tar a fifo -


i want tar output of program writes stdout , fifo @ fd=3. here first attempt:

 #!/bin/bash  #create fd=3 exec 3> >(cat)  #start tar tar -cvzf ha.tgz /dev/fd/1 /dev/fd/3  #write data echo stdout echo 'fd=3'>&3  #close exec 3>&- 

it created ha.tgz , contents /dev/fd/1 , /dev/fd/3. when extract files, creates symlinks /dev/fd/1 , /dev/fd/3 (which broken). hoping files regular files content echo'd in script. there way this?

is there way this?

no. entries under /dev not real files, file-like interfaces device drivers. if want regular files, use regular files.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -