How to read input after calling program, gives: “read: read error: 0: Resource temporarily unavailable”?

The answer is not simple, it depends how arecord handles SIGINT (ctrl+c), read this if you want to understand what exactly is happening. Anyway, I would recommend not to use SIGINT in that way, but.

The answer is not simple, it depends how arecord handles SIGINT (ctrl+c), read this if you want to understand what exactly is happening. Anyway, I would recommend not to use SIGINT in that way, but: run arecord in background (with & at the end), get the pid (arecodr_pid=$! ), then read something like enough, kill -2 $arecodr_pid and after that you can do # Recording now finished, get user input If arecord knows to handle other signals, you can use kill - $arecord_pid Do not use -9, processes can not handle it and in most cases your out file will be corrupted.

I'm puzzled how I would tell it to stop once I'm finished the sound (which is of adjustable length). – eoinoc Jul 19 at 5:40.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions