/* 8c list-res.c && 8l -o list-res list-res.8 && cp list-res $home/bin/386 && 8.out */ #include "send-cmd.h" void main(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); }