ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcppComExec.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ngc/core/ngcppInt.h>
#include <ngc/core/ngcppCom.h>

Functions

int ngcppComExec (ngcpp_link_t *lnk, const char *srvName, const char *cmd, int xt, int debugPort, int *pid, int *cmdPortReal, char *erms)
 
int ngcppComKill (const char *host, int pid, char *erms)
 

Variables

ngcpp_cmd_t ngcppCommand
 
ngcpp_rep_t ngcppReply
 

Detailed Description

Function Documentation

◆ ngcppComExec()

int ngcppComExec ( ngcpp_link_t * link,
const char * srvName,
const char * cmd,
int xt,
int debugPort,
int * pid,
int * cmdPortReal,
char * erms )

Execute the command cmd on host. If the flag xt is one, verbose output is done on a new x-terminal. If the debugPort is greater than zero, the verbose output is sent to this port. The function returns a process id (pid) to be used for ngcppComKill() and the actual command server port.

◆ ngcppComKill()

int ngcppComKill ( const char * host,
int pid,
char * erms )

Terminates the acquisition process on host.

Variable Documentation

◆ ngcppCommand

ngcpp_cmd_t ngcppCommand
extern

◆ ngcppReply

ngcpp_rep_t ngcppReply
extern