Page 1 of 1
Send ctrl-c to process?
Posted: Sat Feb 21, 2015 2:41 am
by trenatos
So I've had some success using open process, but now I need to send ctrl-c to the open process, and I'm having no luck at all.
How would I send control characters to a process, which was opened with update so it should accept both read and write.
Re: Send ctrl-c to process?
Posted: Sat Feb 21, 2015 9:23 am
by SparkOut
Try numToChar(3)
Also check the dictionary regarding deprecation of numToChar to be aware of correct future syntax in 7 up.
Re: Send ctrl-c to process?
Posted: Sat Feb 21, 2015 4:03 pm
by trenatos
No go, nothing happens.
I'm going to do more tests, make sure the problem is that I'm not having problems writing to the process.
Re: Send ctrl-c to process?
Posted: Sat Feb 21, 2015 4:08 pm
by trenatos
Also, it seems that close process doesn't actually do anything.
Re: Send ctrl-c to process?
Posted: Sat Feb 21, 2015 4:11 pm
by trenatos
Aha, it's because it's waiting to finish, which it never will, since it's running a java jetty server.
Using the kill command lets me forcibly close the bat file that I use to open it, but that leaves the java process still running.