Re: 'exec' produced internal code output instead of normal
From:
Koichi Murase
Subject:
Re: 'exec' produced internal code output instead of normal
Date:
Sat, 13 Mar 2021 19:45:59 +0800
2021年3月13日(土) 8:06 Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>:
> but using it resulted sometimes output of code of the script in the output
> of the files
> removing exec made it work normally as supposed
I don't know about `socat', but maybe it's just the file descriptor
collision. One needs to make sure that the file descriptor is not yet
used when a new file descriptor is opened. For example, in Bash
scripts, one should use the file descriptor 3--9 if you manually
specify it because the file descriptors larger than 9 may be already
used for other purposes.
--
Koichi