samba mount script
Hi all,
i write a small script to mount window share directories of about 10 windwows computer on my linux server in order to do automatic backup of those directories. But my script strop mounting if ever there is a problem in one of the computer dont know why? I just want the script do the jog (mounting the other computer) even if theire is a problem in one of them a snapshot of my script Code:
|
Well, your script seems interesting so I hope you don't mind if I use it for myself :P and related to the error you said, why don't you try the following:
mount -t smbfs -o password=fo4 //cp1/TRAVAIL /home/mount/us1/ &>>error.log mount -t smbfs -o password=fo5 //cp2/TRAVAIL /home/mount/us2/ &>>error.log mount -t smbfs -o password=fo6 //cp3/TRAVAIL /home/mount/us3/ &>>error.log mount -t smbfs -o password=fo7 //cp4/TRAVAIL /home/mount/us4/ &>>error.log |
it seem not to work but thank a lot for your answer.
i see know, we have to run all mount command in for ground after redirecting error like this Code:
mount -t smbfs -o password=fo1 //cp1/TRAVAIL /home/mount/us1/ 1>>error.log & |
Quote:
to be or not to be that is the question whether tis nobler in the mind to suffer the slings and arrows of outrageous fortune or to take arms against a sea of troubles i digress....... |
yea
To be, or not to be : that is the question William Shakespeare (from Hamlet ) Thanks :) |
yes i know it's hamlet!!
|
All times are GMT -5. The time now is 06:17 AM. |