diff options
author | Glenn L McGrath | 2002-09-16 09:10:04 +0000 |
---|---|---|
committer | Glenn L McGrath | 2002-09-16 09:10:04 +0000 |
commit | 18b76e6f8047edf2e9e3d8fcc962a2e40ed8ffbd (patch) | |
tree | a43358d389b2e594341e993c7a86d44369244423 /include | |
parent | 8fede28c7408b2231a50c88da22c2e07f26f6d56 (diff) | |
download | busybox-18b76e6f8047edf2e9e3d8fcc962a2e40ed8ffbd.zip busybox-18b76e6f8047edf2e9e3d8fcc962a2e40ed8ffbd.tar.gz |
Watch applet by Michael Habermann
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/usage.h | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index d5c2570..de07cc9 100644 --- a/include/applets.h +++ b/include/applets.h @@ -532,6 +532,9 @@ #ifdef CONFIG_VLOCK APPLET(vlock, vlock_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS) #endif +#ifdef CONFIG_WATCH + APPLET(watch, watch_main, _BB_DIR_BIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_WATCHDOG APPLET(watchdog, watchdog_main, _BB_DIR_SBIN, _BB_SUID_NEVER) #endif diff --git a/include/usage.h b/include/usage.h index 968823e..1cdaa66 100644 --- a/include/usage.h +++ b/include/usage.h @@ -2076,6 +2076,18 @@ "Options:\n" \ "\t-a\tLock all VTs" +#define watch_trivial_usage \ + "[-n <seconds>] COMMAND..." +#define watch_full_usage \ + "Executes a program periodically.\n" \ + "Options:\n" \ + "\t-n\tLoop period in seconds - default is 2." +#define watch_example_usage \ + "$ watch date\n" \ + "Mon Dec 17 10:31:40 GMT 2000\n" \ + "Mon Dec 17 10:31:42 GMT 2000\n" \ + "Mon Dec 17 10:31:44 GMT 2000" + #define watchdog_trivial_usage \ "DEV" #define watchdog_full_usage \ |