Commit | Line | Data |
---|---|---|
d0aeaf5a | 1 | /* |
e9e173fe KB |
2 | * Copyright (c) 1983, 1993 |
3 | * The Regents of the University of California. All rights reserved. | |
9d85c861 | 4 | * |
417f7a11 | 5 | * %sccs.include.redist.c% |
d0aeaf5a DF |
6 | */ |
7 | ||
c5364086 | 8 | #ifndef lint |
e9e173fe | 9 | static char sccsid[] = "@(#)cmdtab.c 8.1 (Berkeley) %G%"; |
9d85c861 | 10 | #endif /* not lint */ |
c5364086 | 11 | |
327673b2 | 12 | #include <sys/cdefs.h> |
c5364086 RC |
13 | |
14 | #include "lpc.h" | |
327673b2 | 15 | #include "extern.h" |
c5364086 | 16 | |
327673b2 KB |
17 | /* |
18 | * lpc -- command tables | |
19 | */ | |
c5364086 RC |
20 | char aborthelp[] = "terminate a spooling daemon immediately and disable printing"; |
21 | char cleanhelp[] = "remove cruft files from a queue"; | |
22 | char enablehelp[] = "turn a spooling queue on"; | |
23 | char disablehelp[] = "turn a spooling queue off"; | |
66697c8d | 24 | char downhelp[] = "do a 'stop' followed by 'disable' and put a message in status"; |
c5364086 RC |
25 | char helphelp[] = "get help on commands"; |
26 | char quithelp[] = "exit lpc"; | |
66697c8d | 27 | char restarthelp[] = "kill (if possible) and restart a spooling daemon"; |
c5364086 | 28 | char starthelp[] = "enable printing and start a spooling daemon"; |
66697c8d | 29 | char statushelp[] = "show status of daemon and queue"; |
c5364086 | 30 | char stophelp[] = "stop a spooling daemon after current job completes and disable printing"; |
25e0cdec | 31 | char topqhelp[] = "put job at top of printer queue"; |
66697c8d | 32 | char uphelp[] = "enable everything and restart spooling daemon"; |
c5364086 RC |
33 | |
34 | struct cmd cmdtab[] = { | |
327673b2 | 35 | { "abort", aborthelp, doabort, 1 }, |
c5364086 RC |
36 | { "clean", cleanhelp, clean, 1 }, |
37 | { "enable", enablehelp, enable, 1 }, | |
38 | { "exit", quithelp, quit, 0 }, | |
39 | { "disable", disablehelp, disable, 1 }, | |
815c5da6 | 40 | { "down", downhelp, down, 1 }, |
c5364086 RC |
41 | { "help", helphelp, help, 0 }, |
42 | { "quit", quithelp, quit, 0 }, | |
43 | { "restart", restarthelp, restart, 0 }, | |
24fbee71 | 44 | { "start", starthelp, startcmd, 1 }, |
c5364086 RC |
45 | { "status", statushelp, status, 0 }, |
46 | { "stop", stophelp, stop, 1 }, | |
03953fc4 | 47 | { "topq", topqhelp, topq, 1 }, |
66697c8d | 48 | { "up", uphelp, up, 1 }, |
c5364086 RC |
49 | { "?", helphelp, help, 0 }, |
50 | { 0 }, | |
51 | }; | |
52 | ||
53 | int NCMDS = sizeof (cmdtab) / sizeof (cmdtab[0]); |