I am using the command:
mount -t cifs //10.41.5.242/warehouse -o username=warehouse,password=password /mnt/warehouse_win
This command works ok, however when I put it in a script it returns with the error:
"mount error: can not change directory into mount target /mnt/warehouse_win"
I have whittled down my script so it now only contains the mount command to try and eliminate the problem so i've obviously donw something wrong somewhere.