SLUG Mailing List Archives
Re: [SLUG] Perls of wisdom???
- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] Perls of wisdom???
- From: Jeff Waugh <jdub@xxxxxxxxxxxxxx>
- Date: Tue Sep 10 14:18:02 2002
- User-agent: Mutt/1.4i
> 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. :-)
"To do: Start up a a magazine dedicated to picky grammar. Call it 'Whom
Weekly'." - WzDD