Skip navigation.
Home
The QNX Community Portal

View topic - using PtTTY or PtTerminal

using PtTTY or PtTerminal

Isn't the name clear?

using PtTTY or PtTerminal

Postby rashidmirza » Mon Aug 01, 2011 7:47 pm

would like to execute a system command ( int system( const char *command )), and see the output of this in a Ptty or
PtTerminal window in a photon application.
Currently, when i execute the system command, i cannot seem to see the output in the Ptty window, but i can see it
happening in the terminal window from where i executed the application.

For Instance:

system("ls -l");
PtSetArg( &FlagArgs, Pt_ARG_TTY_CMD, NULL, 0 );
PtSetResources( ABW_PtTtyDisplay, 1, &FlagArgs );

is what i am trying to do....any suggestions?
rashidmirza
Active Member
 
Posts: 55
Joined: Sun Jun 13, 2010 4:32 am

Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 1 guest