I want to write a shell script that sends code (let's say RBScript code) to
my console app. Let's say my script looks like this:
#!/usr/bin/myapp
print str( 3 )
My app loops through stdin.ReadLine until stdin.EOF is true, then tells
RBScript to execute the code if finds.
If I call myapp directly, then type "print str(3)", then control-D, myapp
executes the code properly. But if I use the script instead, myapp launches,
then waits for me to type. It never sees the remainder of code in the
script.
Is there a way to force my app to see the remainder of the code in the shell
script? Is this a bug in RB?
__________________________________________________________________________
Kem Tekinay (212) 201-1465
MacTechnologies Consulting Fax (914) 242-7294
http://www.mactechnologies.com Pager (917) 491-5546
To join the MacTechnologies Consulting mailing list, send an e-mail to:
mactechnologies_consulting-subscribe at yahoogroups dot com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|