If it only were so…
the “code” for the Corona Terminal app in the Corona SDK folder looks like this:
[bash]
#!/bin/bash
path=dirname "$0"
if [[-f “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator”]]
then
“$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*
else
echo “ERROR: Could not find “Corona Simulator.app” in: $path”
fi
[/bash]
so adding a “exit;” unfortunately doesn’t help me 
I’m trying to do this in C (alltough I hardly know any
)
the following is my code:
[cpp]
#include <stdio.h>
#include <stdlib.h>
int main( int argc, char *argv[] ) {
FILE *fp;
char line[1024];
// Open the command for reading.
fp = popen("/Applications/CoronaSDK/simulator -project /path/Tester 2>&1", “r”);
if (fp == NULL) {
printf(“Failed to run command\n” );
exit;
}
fprintf(stdout, “%s”, “This will show!”);
fflush(stdout);
// Read the output a line at a time - output it.
while (fgets(line, sizeof line, fp) != NULL) {
printf(“out: %s”, line);
fflush(stdout);
}
fflush(fp);
fprintf(stdout, “%s”, “Death to me! \o/\n”);
// close
pclose(fp);
return 0;
}
[/cpp]
and it outputs:
This will show!
out: Copyright © 2009-2011 A n s c a , I n c .
out: Version: 2.0.0
out: Build: 2011.591
out: The file sandbox for this project is located at the following folder:
out: (/path/Tester-AE5A86F38C0D11BB4ACCDA74C52FB74D)
– this is were i cmd+q it:
Death to me! \o/
the test project I’m running just does a bunch of “print()”: s but they never show up.
if I change to:
[cpp]fp = popen("/Applications/CoronaSDK/simulator 2>&1", “r”);[/cpp]
I get the same output, but I also get the “print()”: s, when I press cmd+q (and also I have to pick the project manually, which is a deal-breaker)
…the quest goes on [import]uid: 43027 topic_id: 15621 reply_id: 57696[/import] </stdlib.h></stdio.h>