bashで起動したばかりのプロセスにコマンドを発行するにはどうすればよいですか?シェルコマンドでプロセスを開くコマンドを送信する
たとえば、
# Start Bluez gatttool then Connect to bluetooth device
gatttool -b $MAC -I
connect # send 'connect' to the gatttool process?
gatttool
プロセスが実行されているため、現在、私のシェルスクリプトがconnect
ラインに取得していません。
おそらく、プロセスの標準入力に – tofutim
を送信するように探している可能性があります。http://serverfault.com/questions/188936/writing-to-stdin-of-background-process – tofutim