Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 141
Programming Examples
LAN Programming Interface Examples
char *destination;
unsigned char quiet = 0;
unsigned char show_errs = 0;
int number = 0;
basename = strrchr(argv[0], '/');
if (basename != NULL)
b+ ;
else
basename = argv[0];
while ( ( chr = getopt(argc,argv,"qune")) != EOF )
switch (chr)
{
case 'q': quiet = 1; break;
case 'n': number = 1; break ;
case 'e': show_errs = 1; break ;
case 'u':
case '?': usage(basename); exit(1) ;
}
/* now look for hostname and optional <command>*/
if (optind < argc)
{
destination = argv[+] ;
strcpy(command, "");
if (optind < argc)
{
while (optind < argc) {
/* <hostname> <command> provided; only one command
string */
strcat(command, argv[+]);
if (optind < argc) {
strcat(command, " ");
Содержание X-Series
Страница 4: ...4 ...
Страница 10: ...10 Contents ...