New answers tagged

0 votes

Archiving stdout to multiple tapes

After one night of rest, I found that this can be done with a bit of python if one knows in advance the amount of data to be read (I do). This simple program reads 1MB of data from stdin, and write to ...
lorenzo's user avatar
0 votes

rsyslogd v3.x.x is showing weird behavior when targeting named pipe

From rsyslog document, it looks like the target should include a pipe symbol. This modification resolved my problem such that rsyslog would maintain an open connection to the named pipe even when the ...
Izzo's user avatar
  • 1,031
1 vote
Accepted

Performing character-level comparison of "strings" without explicitly creating temporary files for git diff

This won't be possible with pipe-based redirection as in your bash's <(). But: with zsh-isms, it should work. There is the temporary file expansion =(): #!/usr/bin/zsh # use zsh instead of bash # ...
sina bala's user avatar
  • 427
3 votes
Accepted

find with execdir, pipe redirection evaluated too early (quote issue?)

find . ... -execdir zsh -c "git remote get-url origin $(git ...)" \; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Here, the command substitution is inside a double-...
ilkkachu's user avatar
  • 138k
0 votes

Get exit status of process that's piped to another

As yet another approach, you can use fifo inode files and explicit job control. They make the script much more verbose, but allow for finer control over the execution. Fifo inodes have an advantage ...
Groboclown's user avatar
1 vote

Intercepting/debugging wrapper over a program with bidirectional command/response interface

You'd have to start with a few assumptions. Especially, that your one program doesn't send be commands before your target program is done sending the reply to the previous command. Otherwise, logging ...
sina bala's user avatar
  • 427

Top 50 recent answers are included