Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - making use of PtTerminal: (1 Item)
   
making use of PtTerminal  
I 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?