Unix pipes

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
tobias
Posts: 4
Joined: Sat Aug 31, 2013 8:33 am

Unix pipes

Post by tobias » Sat Aug 31, 2013 9:12 am

How do I communicate back and forth with command line tools through their stdin and stdout?

"open process" seems right, but the dictionary says it only works on Linux.
"shell" isn't interactive, and mixes stdout and stderr.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9823
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Unix pipes

Post by FourthWorld » Sat Aug 31, 2013 3:42 pm

The Dictionary entry for "open process" shows icons for Mac, Win, and Linux, and works on all three.

Where did you read that it was for Linux only?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

tobias
Posts: 4
Joined: Sat Aug 31, 2013 8:33 am

Re: Unix pipes

Post by tobias » Sat Aug 31, 2013 5:21 pm

Quoting from memory: on OS X open process can only be used to launch apps, nut Unix processes. Use get shell for that.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9823
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Unix pipes

Post by FourthWorld » Sat Aug 31, 2013 5:27 pm

Thanks. I see that note now, but missed it originally because Linux and OS X are very different beasts.

What non-application process do you want to interact with? Maybe we can come up with some clever workaround while a request is submitted for this to the RQCC: http://quality.runrev.com/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Mac OS”