Hey! Did you see what dave m mehler wrote on Jul 10 ?

dmm> Hello,     I've got two machines on an ethernet network. One machine has
dmm> windows 98 on it, the other has slackware 4.0. As  I said there
dmm> etherneted, I'd like to mount a windows98 partition directly under
dmm> slackware, but only if it's available, meaning there networked.

Samba is what you want here, and you would use smbmount to mount the
drive.  To only try to mount it when it is available all you would need to
do is write a shell script that pings the Windoze box and if it gets a
reply smbmount the drive.

This is basically how I would do it...

winbox_up()
{
  smbmount blah blah blah (been too long since I've played with samba)
}

/bin/ping -c 2 -q winbox_hostname_or_IP > /dev/null
ret=$?
case $ret in
        0) winbox_up ;;
esac


Regards, Steve Youngs <[EMAIL PROTECTED]> ICQ: 34307457
------------------------------------------------------------
|                                 __                       |
| Isn't it good to know that     / /   __ ___  __ ____  __ |
| There _IS_ an alternative!    / /__ / // _ \/ // /\ \/ / |
|                              /____//_//_//_/\_,_/ /_/\_\ |
------------------------------------------------------------

Reply via email to