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
Location: Virginia, USA
Contact:

Send ctrl-c to process?

Post by trenatos » Sat Feb 21, 2015 2:41 am

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: 2852
Joined: Sun Sep 23, 2007 4:58 pm

Re: Send ctrl-c to process?

Post by SparkOut » Sat Feb 21, 2015 9:23 am

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
Location: Virginia, USA
Contact:

Re: Send ctrl-c to process?

Post by trenatos » Sat Feb 21, 2015 4:03 pm

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
Location: Virginia, USA
Contact:

Re: Send ctrl-c to process?

Post by trenatos » Sat Feb 21, 2015 4:08 pm

Also, it seems that close process doesn't actually do anything.
Marcus

trenatos
Posts: 189
Joined: Wed Jul 03, 2013 6:46 am
Location: Virginia, USA
Contact:

Re: Send ctrl-c to process?

Post by trenatos » Sat Feb 21, 2015 4:11 pm

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

Return to “Getting Started with LiveCode - Complete Beginners”