[Gllug] Unreliable Samba connections

Wulf Forrester-Barker wulf.f-b at uhl.nhs.uk
Wed Nov 3 17:11:57 UTC 2004


One of the things that has really helped Linux become my main desktop
development system at work has been the ease with which I can use Samba
to hook into the many MS Windows servers round the place, extract data,
process it with the power of various command line tools and then either
put it back on the source server or present the results via a web
interface.

However, I have noticed that sometimes the process of mounting a remote
machine doesn't always return control to the shell, meaning the rest of
the script won't be executed (even though the mounting action may have
been successful). I use commands in the form:

mount -t smbfs -o username=username,password=password //mountlocation
./localmountpoint

Even running with a certain level of debugging information doesn't yield
anything that particularly enlightens me. I've built some work arounds
into my scripts (eg. if the mount point is still open from last time and
contains files that indicate the correct location then proceed directly
to grabbing the data) but would like to come up with something a bit
better (if mount doesn't complete in a reasonable time frame figure out
what is going on and, if necessary, try again).

Any ideas?

Wulf


-- 
Wulf Forrester-Barker, webmaster
http://www.lewisham.nhs.uk/


wulf.f-b at uhl.nhs.uk

**********************************************************************
DISCLAIMER:

Any opinions expressed in this email are those of the individual and
not necessarily the Trust. This email and any files transmitted with
it are confidential and intended solely for the use of the individual
or entity to whom they are addressed. Any unauthorised disclosure of
the information contained in this email is strictly prohibited.

The contents of this email may contain software viruses which could
damage your own computer system. Whilst we have taken every
reasonable precaution to minimise this risk, we cannot accept liability
for any damage which you sustain as a result of software viruses.
You should therefore carry out your own virus checks before opening
the attachment.

If you have received this email in error please notify the sender or
postmaster at uhl.nhs.uk. Please then delete this email.

University Hospital Lewisham
Tel: 020 8333 3000
Web: http://www.lewisham.nhs.uk/
**********************************************************************

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list