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?



My comments elsewhere

Zoulapia

  • 22.07 Quote of the Day

    Lab Lemming said

    So the problem isn’t the greedy fuckers, the problem is the arrogant fuckers who have been telling the rest of the world “my way or the highway” for the past 7 years. ’cause door number 2 is exactly what has happened. So long, uncle Sam, and thanks for all the fish.

    So yeah, America is fucked. (Great post btw)

  • 21.07 Run while you still can

    Things are not looking positive for the Microsoft shareholders.

    I can’t say I’m surprised as it was only a matter of time until the constand foot-shooting and shoddy work MS is known for, finally caught up with them.

    I’m only surprised they managed to last this long.

  • 09.07 Quote of the Day

    Quoth Greg

    Ayn Rand is just Nietzche with a heaping help of asshole, arrogance, and selfishness thrown in. Do yourself a favor; skip Rand, read Nietzche.

    :D