alarm(1) manpage
parent
9f6eb984ec
commit
739846b452
|
@ -3,10 +3,10 @@
|
||||||
alarm \- ask for delayed note
|
alarm \- ask for delayed note
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B alarm
|
.B alarm
|
||||||
[
|
|
||||||
.I time
|
.I time
|
||||||
.I path
|
.I command
|
||||||
.I arg
|
[
|
||||||
|
.I arg ...
|
||||||
]
|
]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.I Alarm
|
.I Alarm
|
||||||
|
@ -14,11 +14,11 @@ causes an
|
||||||
.B alarm
|
.B alarm
|
||||||
note (see
|
note (see
|
||||||
.IR notify (2))
|
.IR notify (2))
|
||||||
to be sent to the process indicated by the argument
|
to be sent to the process indicated by
|
||||||
.I path
|
.I command
|
||||||
after the number of seconds
|
after
|
||||||
given by the argument
|
.I time
|
||||||
.I time.
|
seconds.
|
||||||
.SH SOURCE
|
.SH SOURCE
|
||||||
.B /sys/src/cmd/alarm.c
|
.B /sys/src/cmd/alarm.c
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
|
|
|
@ -29,7 +29,7 @@ int cpid;
|
||||||
void
|
void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
fprint(2,"usage: alarm time path arg ...\n");
|
fprint(2,"usage: %s time command [ arg ... ]\n", argv0);
|
||||||
exits("usage");
|
exits("usage");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,6 +47,7 @@ main(int argc, char *argv[])
|
||||||
Waitmsg *w;
|
Waitmsg *w;
|
||||||
long n, t;
|
long n, t;
|
||||||
|
|
||||||
|
argv0 = argv[0];
|
||||||
if(argc < 3)
|
if(argc < 3)
|
||||||
usage();
|
usage();
|
||||||
n = strtol(argv[1], &p, 10);
|
n = strtol(argv[1], &p, 10);
|
||||||
|
|
Loading…
Reference in New Issue