summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-11-10 22:07:57 +0000
committerJeremy Allison <jra@samba.org>2000-11-10 22:07:57 +0000
commitc97023b14c942f7261808159a0d192926239b704 (patch)
tree2b9c719f521cf74982fd5b8ff00cb164dd88b924 /source3/utils
parent108f86dcccd21196105fb33f0e2ac0e5ef114341 (diff)
downloadsamba-c97023b14c942f7261808159a0d192926239b704.tar.gz
samba-c97023b14c942f7261808159a0d192926239b704.tar.bz2
samba-c97023b14c942f7261808159a0d192926239b704.zip
Merge in Herb's changes from 2.2.
Jeremy. (This used to be commit 24d76c5fbda29d89c96d7c22193ec2eb93ad3887)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcontrol.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 57f6149bcd..c059ccb6ec 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -19,8 +19,6 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#define NO_SYSLOG
-
#include "includes.h"
static struct {
@@ -32,6 +30,7 @@ static struct {
{"ping", MSG_PING},
{"profile", MSG_PROFILE},
{"debuglevel", MSG_REQ_DEBUGLEVEL},
+ {"printer-notify", MSG_PRINTER_NOTIFY},
{NULL, -1}
};
@@ -196,6 +195,19 @@ static BOOL do_command(char *dest, char *msg_name, char *params)
}
break;
+ case MSG_PRINTER_NOTIFY:
+ if (!strequal(dest, "smbd")) {
+ fprintf(stderr,"printer-notify can only be sent to smbd\n");
+ return(False);
+ }
+ if (!params) {
+ fprintf(stderr, "printer-notify needs a printer name\n");
+ return (False);
+ }
+ retval = send_message(dest, MSG_PRINTER_NOTIFY, params,
+ strlen(params) + 1);
+ break;
+
case MSG_PING:
if (!pong_registered) {
message_register(MSG_PONG, pong_function);