[wplug] shell script madness

Alexandros Papadopoulos apapadop at andrew.cmu.edu
Wed Jul 16 09:11:20 EDT 2003


Please help me here, I'm entering the twilight zone:

[alex at dhcp13-33 alex]$ mount
/dev/hda1 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda5 on /home type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
PITT-NW01/PAPADOPA.USERS.PITT.PENN.SEAGATE on /home/alex/SEAGATE/PITT-NW01
type ncpfs (rw)
[alex at dhcp13-33 alex]$ if [ `mount | grep PITT-NW01 | wc -l` ]; then echo
lala; fi
lala
[alex at dhcp13-33 alex]$ if [ `mount | grep PITT-NW02 | wc -l` ]; then echo
lala; fi
lala
[alex at dhcp13-33 alex]$ mount | grep PITT-NW02 | wc -l
      0
[alex at dhcp13-33 alex]$

What's happening here??

-A





More information about the wplug mailing list