Liste des Groupes | Revenir à cu programmer |
On 16.11.24 12:26, Muttley@dastardlyhq.com wrote:There is a command line util (MacOS "say")* that I wish to use>
fork-exec'd from
my own program and send data to it via a socket created by socketpair().
Unfortunately "say" behaves differently depending on whether its stdin is
attached to a tty or not (and there's no cmd line option to prevent this).
With the former it'll speak after every newline, with the latter not until it
gets an EOF and I'd rather not do a fork-exec for each individual word or
phrase that needs to be spoken.
On shell level I'm using a program called 'pty' that takes the command
as argument to make it think it has a terminal connection.
Les messages affichés proviennent d'usenet.