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?

If you liked what you just read, take a chair, grab an  RSS feed and leave a comment. Thanks!


Comments: Comments

Jump to comment form | comments rss [?] | trackback uri [?]

My comments elsewhere

  • Carnival Mania II!!! (Post a Comment)
    Created 1 hour ago last 1 comments, out of 2 Db0 says: Oct 13 at 22:48 PM A little slow-loading, I know, I know. Sometimes I hate my host :( add comment
  • Don't lie (The Barefoot Bum)
    Created 1 hour ago last 1 comments, out of 10 Db0 says: Oct 13 at 22:46 PM "What the hell is so bad about James Randi??"The same thing that was wrong with Carlin. He's not young enough... add comment. […]
  • The global financial collapse (The Barefoot Bum)
    Created 1 hour ago last 1 comments, out of 2 Db0 says: Oct 13 at 22:40 PM I really want to believe that this guy is scaremongering but I just can't see obvious holes in his arguments and facts :(Thin. […]
  • Carnival of the Godless # 102 (Oz Atheist’s Weblog)
    Created 5 hours ago last 1 comments, out of 19 Db0 says: Oct 13 at 19:20 PM Hope you liked it. I was looking forward to your post but alas, it was not meant to be :-/ add comment
  • A note for those commenting here… (Atheist Central)
    Created Oct 11 last 1 comments, out of 3 Db0 says: Oct 11 at 21:16 PM Instead of having moderation, why don't you just use a proper anti-spam filter? Even better, just grab an Intense Debate account. […]

Zoulapia

  • 13.10 Quote of the Day: Capitalism

    Quoth the Barefoot Bum

    The problem our capitalist economy faces is not how to feed everyone, but how to make a profit feeding everyone.

    Aptly said and so true. We would have no problem feeding everyone on the planet but the capitalists can’t make a profit that way and this goes for most goods.

    Just look at the situation with Intellectual Property where the right holders are trying to reign in infinite goods just because they can’t figure out a business plan to make money out of them.

  • 24.09 Quote of the Day: Past and Future

    Quoth Xenos

    Those who parade their history as an excuse for laziness and incompetence will soon discover that they have no future.

  • 28.08 Quote of the Day: Science contribution

    Quoth Matthew Cob and Jerry Coyne

    You suggest that science may bring about “advances in theological thinking”. In reality, the only contribution that science can make to the ideas of religion is atheism.

    (h/t Pharyngula)