All Questions
4
questions
2
votes
1
answer
325
views
How to pipe stdout into stdin of optipng?
Is there any way to do something like this: (or why below code doesn't work?)
type input.png | optipng -out output.png
p.s: type is Windows version of cat Unix command
6
votes
1
answer
3k
views
Cat hangs when attempting to read empty STDIN
My script attempts to gather information that may or may not be present in STDIN at execution time, but cat hangs if the pipe is empty. How can I ensure that my script skips this step if this there is ...
4
votes
2
answers
11k
views
Piping commands into nc
I've seemingly searched many very similar questions but never quite found something to work. I'm trying to use a raspberry pi (2nd gen) to communicate with a Wifi OBDII sensor. I'm able to use the ...
-1
votes
3
answers
205
views
How to use the command "read" on a Shell script which reads its arguments from stdin
First of all, thank you for your help in advance and sorry in case this was answered before. I have not been able to find it.
For helping to understand my question, I have written the following ...