ref: 3339b8e96047d83eec8d360c2c6157a1a5215453
parent: d47463da13fe906fcf25de8aa36d196ea13de860
author: cinap_lenrek <cinap_lenrek@rei2.9hal>
date: Wed Feb 15 14:40:08 EST 2012
alarm(1) manpage
--- a/sys/man/1/alarm
+++ b/sys/man/1/alarm
@@ -3,10 +3,10 @@
alarm \- ask for delayed note
.SH SYNOPSIS
.B alarm
-[
.I time
-.I path
-.I arg
+.I command
+[
+.I arg ...
]
.SH DESCRIPTION
.I Alarm
@@ -14,11 +14,11 @@
.B alarm
note (see
.IR notify (2))
-to be sent to the process indicated by the argument
-.I path
-after the number of seconds
-given by the argument
-.I time.
+to be sent to the process indicated by
+.I command
+after
+.I time
+seconds.
.SH SOURCE
.B /sys/src/cmd/alarm.c
.SH SEE ALSO
--- a/sys/src/cmd/alarm.c
+++ b/sys/src/cmd/alarm.c
@@ -29,7 +29,7 @@
void
usage(void)
{- fprint(2,"usage: alarm time path arg ...\n");
+ fprint(2,"usage: %s time command [ arg ... ]\n", argv0);
exits("usage");}
@@ -47,6 +47,7 @@
Waitmsg *w;
long n, t;
+ argv0 = argv[0];
if(argc < 3)
usage();
n = strtol(argv[1], &p, 10);
--
⑨