Lines Matching defs:job
65 /* Variables to remove from the job's environment. */
181 * writing a job.
242 * Get the shell to run the job under. First check $SHELL, falling
337 /* We want the job to run under the user's shell. */
366 (void)fprintf(stderr, "job %s at %s\n", &atfile[sizeof(_PATH_AT_SPOOL)],
383 /* Sort by job number (and thus execution time). */
396 print_job(struct atjob *job, int n, int shortformat)
405 runtime = *localtime(&job->runtimer);
408 (void)printf("%lld.%c\t%s\n", (long long)job->runtimer,
409 job->queue, timestr);
411 pw = getpwuid(job->uid);
420 (long long)job->runtimer, job->queue, job->queue,
421 (S_IXUSR & job->mode) ? "" : " (done)");
437 struct atjob **atjobs, **newatjobs, *job;
488 * in case someone adds a job or two.
546 job = malloc(sizeof(struct atjob));
547 if (job == NULL)
549 job->runtimer = runtimer;
550 job->ctime = stbuf.st_ctime;
551 job->uid = stbuf.st_uid;
552 job->mode = stbuf.st_mode;
553 job->queue = queue;
557 newjobs, sizeof(job));
563 atjobs[numjobs++] = job;
577 /* Sort by job run time or by job creation time. */
593 rmok(long long job)
597 printf("%lld: remove it? ", job);
606 * that match argv (may be job or username), or all if argc == 0.
732 warnx("%s: no such job", jobs[i]);
837 "usage: at [-bm] [-f file] [-l [job ...]] [-q queue] "
839 " at -c | -r job ...\n");
847 "usage: atrm [-afi] [[job] [name] ...]\n");
917 case 'm': /* send mail when job is complete */