Re: getting standard input when running MPI program using custom executable
Re: getting standard input when running MPI program using custom executable
- Subject: Re: getting standard input when running MPI program using custom executable
- From: Dave Reed <email@hidden>
- Date: Mon, 11 Jan 2010 14:32:22 -0500
On Jan 11, 2010, at 10:48 AM, James Bucanek wrote:
> email@hidden <mailto:email@hidden> wrote (Sunday, January 10, 2010 8:13 AM -0500):
>
>> To run it, I created a custom executable with the path:
>>
>> /usr/bin/mpirun
>
> When you set up the custom executable, did you specify Use Pseudo terminal for stdin/stdout? That option connects Xcode's Run/Debug console window to the launched process.
>
> You can verify this with any interactive BSD tool (i.e. set your executable to /usr/bin/bc).
>
> After that, it's a matter of figuring out why mpirun won't pass stdin on to your application. I do know that some application characterize the nature of stdin and may treat it differently if they don't think it's a shell or some other interactive device.
>
>
>
> James Bucanek
> ____________________________________________________________________
> Author of Beginning Xcode ISBN: 047175479X
> <http://www.beginningxcode.com/>
>
Yes, I've got it set to use Pseudo terminal.
I tried setting the executable to /usr/bin/bc and unchecked the command line arguments I was using.
I ran it and I typed in 2+3 and pressed <return>
and it duplicated the characters as I was typing. I got:
22++33
5
This is Xcode 3.2.1 on 10.6.2.
It's not a crisis as I can run it from the terminal, but I figured it was worth asking. If you or anyone has other suggestions, I'll try them.
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden