Send ctrl-c to process?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
trenatos
Posts: 189
Joined: Wed Jul 03, 2013 6:46 am
Contact:

Send ctrl-c to process?

Post 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.
Marcus
SparkOut
Posts: 2984
Joined: Sun Sep 23, 2007 4:58 pm

Re: Send ctrl-c to process?

Post by SparkOut »

Try numToChar(3)
Also check the dictionary regarding deprecation of numToChar to be aware of correct future syntax in 7 up.
trenatos
Posts: 189
Joined: Wed Jul 03, 2013 6:46 am
Contact:

Re: Send ctrl-c to process?

Post 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.
Marcus
trenatos
Posts: 189
Joined: Wed Jul 03, 2013 6:46 am
Contact:

Re: Send ctrl-c to process?

Post by trenatos »

Also, it seems that close process doesn't actually do anything.
Marcus
trenatos
Posts: 189
Joined: Wed Jul 03, 2013 6:46 am
Contact:

Re: Send ctrl-c to process?

Post 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.
Marcus
Post Reply