WinPopUps Continued
I knew there was a way to do it.
I just updated my WinPopUp script to the following, following the recipe here
#!/bin/bash
#winpopup.sh
# Send a zabbix message via winpopup to a given host
# Use as an alertscript within zabbix
# Syntax: winpopup $receiptant $subject $message
# Note: zabbix passes $1=receiptiant, $2=subject, $3=message to any script
echo -e "Subject:$2\\n$3" | smbclient -M $1
Excellent. Now I don’t need a script for each PC that I want to message. I can just pass the argument from the Media link of each user.
Strange thing is that I had tried to put $1 on my old script’s destination but it didn’t work for some reason.
Where’s my SMS I hear you shout?