realbasic-nug
[Top] [All Lists]

Creating an executable script

To: REALbasic-NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Creating an executable script
From: Kem Tekinay <ktekinay at mactechnologies dot com>
Date: Tue, 28 Nov 2006 01:14:02 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thread-index: AccStGYdpH+AFH6nEduWLwANkyy31A==
Thread-topic: Creating an executable script
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>


<Prev in Thread] Current Thread [Next in Thread>