W4VE W4VE - 1 year ago 121
Bash Question

Terminate Logcat's -f output via shell on Android device

I am currently running

logcat -v time -f /dir/to/file.log
on an embedded Android device. Everything is running successfully and the log is piped to the file

However, I am unable to terminate logcat's piped output to the file. I am aware of CTRL C, but I am looking for a String based command that can be interpreted via Android's

My aim is to terminate the stream of data written to
. No other condition applies.

Answer Source

Did you consider looking at Process's documentation? I would figure destroy() should work for you.



Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download