LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   samba mount script (https://www.linuxquestions.org/questions/linux-networking-3/samba-mount-script-437055/)

papiseckfr 04-20-2006 05:24 AM

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:


mount -t smbfs -o password=fo4 //cp1/TRAVAIL /home/mount/us1/ 1>>error.log
mount -t smbfs -o password=fo5 //cp2/TRAVAIL /home/mount/us2/ 1>>error.log
mount -t smbfs -o password=fo6 //cp3/TRAVAIL /home/mount/us3/ 1>>error.log
mount -t smbfs -o password=fo7 //cp4/TRAVAIL /home/mount/us4/ 1>>error.log

any help is welcome

avatarfx 04-20-2006 05:37 AM

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

papiseckfr 04-20-2006 06:41 AM

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 &
Thanks

satinet 04-20-2006 07:29 AM

Quote:

be or not to be that is the question
don't you mean

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.......

papiseckfr 04-20-2006 09:54 AM

yea
To be, or not to be : that is the question
William Shakespeare (from Hamlet )
Thanks :)

satinet 04-20-2006 10:19 AM

yes i know it's hamlet!!


All times are GMT -5. The time now is 06:17 AM.