[Samba] Sending popup message via smbclient to w2k and winxp machines

Adam Nielsen adam.nielsen at uq.edu.au
Wed Jun 7 01:32:47 GMT 2006

> MESSAGE="$WINNAME, your job $_3GJOB\nhas successfully completed"
> echo "$MESSAGE" | /path/to/smbclient -M trout > /dev/null 2>&1
> echo "$MESSAGE\n/path/to/smbclient -M trout >> logfile.txt
> Why isn't the message being sent from within the script? 

Is it a redirect issue?  What happens if you change the line to:

(echo "$MESSAGE" | /path/to/smbclient -M trout) > /dev/null 2>&1


More information about the samba mailing list