Sample Header Ad - 728x90

How to check for presence of named pipe on the file system

5 votes
1 answer
4600 views
I tried using the -f flag to test if a named pipe is present if [[ ! -f "$fifo" ]]; then echo 'There should be a fifo.lock file in the dir.' > /dev/stderr return 0; fi this check does not seem correct. So perhaps a named-pipe is not a file, but something else?
Asked by user282164
Jun 4, 2019, 06:38 PM
Last activity: Jun 4, 2019, 07:16 PM