david@infopro.UUCP (David Fiedler) (05/10/86)
The uuq command posted awhile ago is useful. I added a -t option, which allows you to "touch" the command and data files for a particular uucp job to prevent it from automatically being erased on those systems that delete pending jobs after a certain amount of time. The diffs follow for both uuq.c and the man page, uuq.1. There's probably a .signature file at the end to watch out for. Dave Fiedler uuq.c: 44d43 < char *touch; 73,75d71 < case 't': < touch = &argv[0][2]; < break; 84c80 < "usage: uuq [-l] [-h] [-ssystem] [-uuser] [-djobno] [-tjobno] [-rspooldir]\n"); --- > "usage: uuq [-l] [-h] [-ssystem] [-uuser] [-djobno] [-rspooldir]\n"); 192,194d187 < } else if (touch) { < if (strcmp(touch, p)) < return(0); 227,233d219 < if (touch) { < if (W_TYPE[0] == 'S' && !index(W_OPTNS, 'c')) { < utime(W_DFILE,NULL); < fprintf(stderr, "Touching data file %s\n", W_DFILE); < } < continue; < } 265,269d250 < exit(0); < } < if (touch) { < utime(filename,NULL); < fprintf(stderr, "Touching command file %s\n", filename); uuq.1: 5c5 < \fBuuq\fR [-l] [-h] [-ssystem] [-uuser] [-djobno] [-tjobno] [-rsdir] --- > \fBuuq\fR [-l] [-h] [-ssystem] [-uuser] [-djobno] [-rsdir] 40,43d39 < -t\fIjobno\fR < Touch (update the modification time of) files associated with < job number \fIjobno\fR (as obtained from a previous uuq command). < .TP 10 59,61d54 < .br < The -t and -d options require write permission on the files involved and < will silently fail without it. -- David Fiedler {astrovax,attmail,clyde,harpo,ihnp4,topaz,whuxcc}!infopro!david USMail: InfoPro Systems, 3108 Route 10, Denville, NJ 07834 People Phone: (201) 989-0570