In short, run a bash compressed script? but can this be done using a binary instead of a shell script?
Suppose I have a binary that compresses in .gz. I can unzip the handset and check the contents like this:
$ gzip -d --stdout hello.gz | file -
/ dev / stdin: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
$
Instead of passing this output to a command, is there a way I can actually execute the contents of the channel itself without writing it to a file?
I have considered using a named pipe, but this does not work:
$ mkfifo execpipe
$ chmod 777 execpipe
$ gzip -d --stdout hello.gz> execpipe &
[3] 30034
$ ./execpipe
bash: ./execpipe: Permission denied
$ [3] + Broken pipe gzip -d --stdout hello.gz> execpipe
$
Is there a way to execute the contents of the feed without creating the actual file?
linux shell pipe executable
Digital trauma
source share