[EMAIL PROTECTED] wrote:

> Hi,
>
> I'm would like to use "talk" to commicate with somebody using
> win95.
>
> Is there a "talk" equivalent for Win95?
>

Well, Win9x has the winpop for network communications and I've set up a
little script here that does communicate with win9x here:-)  Another
script (Samba wouldn't handle the read message command due to property
problems with the temp file, so I created a little script that would
handle that problem as well.... (I called that one "ReadPop")  The one
that Writes to the Win machine is called "winpop":-)

I've attached both scripts, hope they help:-)


--
cya l8r
mailto:
Linux User 78912 (
Linux Box)

Corruption is not the #1 priority of the Police Commissioner.  His job
is to enforce the law and fight crime.
                -- P.B.A. President E. J. Kiernan


#!/bin/sh
#
# ReadPop - Reads a Pop up Message from Win95 Machine
#
FILE=$1
chmod 660 $FILE
echo $FILE
/usr/bin/X11/xedit -display :0 $FILE 
rm $FILE
#!/bin/sh
#
# File=/root/bin/winpop
#
# Used to Pop messages to win95 machine
#
MSG=$1
TARGET=$2
if [ -z $TARGET ]; then
    TARGET=Win95
fi
TMPFILE="/tmp/office.msg"
SMB="smbclient -U $HOSTNAME -M $TARGET"
echo -e "`date +%c` \nThis Message Comes from $USER@$HOSTNAME \n" > $TMPFILE
if [ -z $MSG ]; then
    echo "Please Press Ctrl-D to send message!"
    cat >> $TMPFILE
else
    echo $MSG >> $TMPFILE
fi
echo -e "\n" >> $TMPFILE
echo -n
if [ -f $TMPFILE ]; then
    cat $TMPFILE | $SMB
    rm $TMPFILE
fi

Reply via email to