Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I hope somebuddy can help me with t

Status
Not open for further replies.

bluegroper

Technical User
Dec 12, 2002
407
AU
I hope somebuddy can help me with this.
I need to be able to send messages from a Samba server to various windows workstations.
A clip of my shell script is below.
It works perfectly when sending to a Win2000 workstations, but is totally dead when trying to send to Win98 workstations.
Is this caused by differences in WinPopup, or something else entirely ?
TIA's
ßG


#!/bin/bash
# /usr/local/bin/tester
# usage is tester "username" "ip-address"
MESSAGE="Can you read this \077"
echo -e $MESSAGE|smbclient -M $1 -I $2 -U "Admin"


 
Looks like I found the answer.
From smbclient manpage ...
"If the receiving computer is running WinPopup the user will receive the message and probably a beep. If they are not running WinPopup the message will be lost, and no error message will occur. "

D'oh.
 
Yes, Winpopup must be running on the 9x machines. The easist way to make this happen is to create a shortcut to winpopup in the startup folder on the wind 9x machines. You can then modify the properties of this shortcut to always start minimized, so it's not as obtrusive.
 
Hi, I am trying to startup winpopup.exe on my clients' machines using the logon scipt. The logon script will write to the clients' registry to startup winpopup.exe but, apparently, the registry file I wrote didn't create a key on the clients' registry! what could be wrong here?

here's what I wrote in my registry file

REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"Winpopup"="C:\Windows\Winpopup.exe"

without winpopup running, i can't net send any messages!

urrgrghhhh....
 
What flavour of WindoZe are you using ?
Me thinks WinPopUp only exists in Win9X.
My Win2K has the messaging stuff already installed as a service. Dunno about XP.

 
well... my clients are using win98 while the server runs on 2000.

any idea why the registry can't be created? or why doesn't it create?

is creating short cuts the only way to run winpopup? coz it will be a hassle to go to every clients machine to create the short cut at the startup. I have about 70 - 80 client machines. that's why i would prefer to run the registry file at the logon batch file.

is there another way?
 
You can create the shortcut with a VBScript called in your logon script, provided your win98 machines have WSH installed.
Or why not do a 'start winpopup' in your logon script ?

Hope This Help
PH.
 
Hi, found the answer to writing to registry. here it is... u have to line feed after the Regedit4 and also after your key

REGEDIT4

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"Winpopup"="C:\Windows\Winpopup.exe"


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top