rminnichmerge57758a716 years agoHistory
29 lines · 386 B · C
RawDownload
 /* 8c list-res.c &&8l -o list-res list-res.8 &&cp list-res $home/bin/386 &&8.out*/#include "send-cmd.h" voidmain(int argc, char *argv[]){  	char buf[1024];	int i;		if ( argc <= 0) {		print ("not enough arguments\n");		exits(0);	}	strcpy (buf, "qstat");	for (i = 1 ; i < argc ; ++i ) {		strcat (buf, " ");		strcat (buf, argv[i]);	}	execute_cmd (buf);	exits(0);}