version 1.26, 2002/05/11 23:16:44 |
version 1.27, 2002/05/13 16:12:07 |
|
|
|
|
#define TIMESIZE 50 |
#define TIMESIZE 50 |
|
|
enum { ATQ, ATRM, AT, BATCH, CAT }; /* what program we want to run */ |
|
|
|
/* File scope variables */ |
/* File scope variables */ |
#ifndef lint |
#ifndef lint |
static const char rcsid[] = "$OpenBSD$"; |
static const char rcsid[] = "$OpenBSD$"; |
|
|
|
|
extern char **environ; |
extern char **environ; |
int fcreated; |
int fcreated; |
|
int program = AT; /* default program mode */ |
char atfile[FILENAME_MAX]; |
char atfile[FILENAME_MAX]; |
|
|
char *atinput = (char *)0; /* where to get input from */ |
char *atinput = (char *)0; /* where to get input from */ |
|
|
|
|
runtimer = 60 * (time_t) ctm; |
runtimer = 60 * (time_t) ctm; |
runtime = *localtime(&runtimer); |
runtime = *localtime(&runtimer); |
strftime(timestr, TIMESIZE, "%+", &runtime); |
strftime(timestr, TIMESIZE, "%a %b %e %T %Y", &runtime); |
if (first) { |
if (first) { |
(void)printf("Date\t\t\t\tOwner\t\tQueue\tJob#\n"); |
(void)printf("Date\t\t\t\tOwner\t\tQueue\tJob#\n"); |
first = 0; |
first = 0; |
|
|
int c; |
int c; |
char queue = DEFAULT_AT_QUEUE; |
char queue = DEFAULT_AT_QUEUE; |
char queue_set = 0; |
char queue_set = 0; |
int program = AT; /* default program mode */ |
|
char *options = "q:f:t:bcdlmrv"; /* default options for at */ |
char *options = "q:f:t:bcdlmrv"; /* default options for at */ |
time_t timer; |
time_t timer; |
int tflag = 0; |
int tflag = 0; |