Popup/broadcast message in Unix platform

Hi Everybody

My requirement is; whenever a User Y creates a request in the Test Request DB and assigns it to another User X, then a popup message should be shown to User X, even if he doesn’t have the Test Request DB open in his/her workspace.

The following solution was given to me by Paul. However, my server is on Unix platform so this code doesn’t work.

Could anyone help me in getting this requirement fulfilled? I need this functionality. Help…

"Well if Notes is not running then you cannot interface with a “Notes User”. is your serevr running on windows? If so does your network support WinPop messages? If so then you’d need to store all user’s LAN IDs in their person docs. In your request doc do a lookup and grab the user’s LAN ID. Then create a script to build a bat file on the server and run it.

filename$ = “c:\temp\winpop.bat”

lanid$ = “” & " " ’ set this value from field on doc

’ Create bat file on the fly

fileNum% = Freefile()

Open filename$ For Output As fileNum%

’ add each lne to file

Print #fileNum%, “@ECHO OFF”

Print #fileNum%, "NET SEND " & lanid$ & “you have a new request assigned to you”

Close fileNum%

Sleep 1

’ check to make sure the batch file exists

check$ = Dir$(filename$)

’ If we can’t find the batch file then exit

If Len(check$) = 0 Then

Print “batch file not found”

Exit Sub

End If

’ now run the batch file to send win pop message

result = Shell( filename$ )

Sleep 1

Kill( filename$ )

I ran this successfully in a db on a W2K3 server using my LAN ID in lanid$ and it worked fine. HTH "

Thank you.

Gayatri Gouda

Subject: popup/broadcast message in Unix platform

You can follow same philosophy in Unix too right?

Replace .bat in filename to .sh

Replace \ with / in file path.

Instead of NET SEND command use

write

Refer Unix man page here:

http://unixhelp.ed.ac.uk/CGI/man-cgi?write

Regards

Litty Joseph