C++ synchronization

C++ Pipe

 

 Create a program which will work for you by using other application like ping,unzip  Or you can create a Gui for Linux applications and some windows

 

 

 

#include<iostream>
#include<windows.h>
#include<conio.h>
using namespace std;
int main(){
    char   psBuffer[128];
    FILE   *pPipe;
if( (pPipe = _popen("dir", "rt" )) == NULL )
//Place application  command in place of dir
      exit( 1 );
/* Read pipe until end of file. */
while( !feof( pPipe ) )
{
if( fgets( psBuffer, 128, pPipe ) != NULL )
cout<<psBuffer;
}

_pclose( pPipe );

    getch();
}