summaryrefslogtreecommitdiff
path: root/usr/src/cmd/cron
diff options
context:
space:
mode:
authordp <none@none>2006-02-28 16:15:15 -0800
committerdp <none@none>2006-02-28 16:15:15 -0800
commit3010f05b8e7c41a103780aa9306659706e47f207 (patch)
treebd5f2ef40bd6ee1eaf91c2bd0f0b4d3d849b970b /usr/src/cmd/cron
parent7c21cbc95b000a2804a1f0e2a4bedc0be38988b8 (diff)
downloadillumos-joyent-3010f05b8e7c41a103780aa9306659706e47f207.tar.gz
PSARC 2006/134 logadm(1m) $zonename keyword
4823583 crontab command prints incorrect usage 6352485 RFE: add $zonename to the list of macros supported by logadm Contributed by Richard Lowe <richlowe@richlowe.net>.
Diffstat (limited to 'usr/src/cmd/cron')
-rw-r--r--usr/src/cmd/cron/crontab.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/usr/src/cmd/cron/crontab.c b/usr/src/cmd/cron/crontab.c
index 9638fab398..221e084fe8 100644
--- a/usr/src/cmd/cron/crontab.c
+++ b/usr/src/cmd/cron/crontab.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
@@ -59,7 +58,11 @@
"because your login shell isn't /usr/bin/sh, you can't use cron."
#define WARNSHELL "warning: commands will be executed using /usr/bin/sh\n"
#define BADUSAGE \
- "proper usage is: \n crontab [file | -e | -l | -r ] [user]"
+ "usage:\n" \
+ "\tcrontab [file]\n" \
+ "\tcrontab -e [username]\n" \
+ "\tcrontab -l [username]\n" \
+ "\tcrontab -r [username]"
#define INVALIDUSER "you are not a valid user (no entry in /etc/passwd)."
#define NOTALLOWED "you are not authorized to use cron. Sorry."
#define NOTROOT \