<quote who="Stuart">

> smbmount of a PC's remote HDD to /mnt/remotedisk

(These days, the recommended method is mount -t smbfs, btw.)

> How do I tell in perl-speak (ie without rewriting the whole thing in
> Java) that the mount point succeeded. 
> 
> I'm happy to put a file on the remote HDD and search for it's existence
> or some such.
> 
> If the mount fails, the root filesystem on the server fills as the
> backup proceeds to /mnt/remotedisk. Aarrrgh.

How about grepping the output of 'mount' for the mountpoint? That's how I'd
do it in bash. :-)

- Jeff

-- 
  "To do: Start up a a magazine dedicated to picky grammar. Call it 'Whom   
                              Weekly'." - WzDD                              
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to