I got it to work!!!!

[NETBIOS:USER:SHARE]

I didn't have the first line of the .nsmbrc file in all caps.

And I added this optional parameter.

 -N      Do not ask for a password.  At run time, mount_smbfs reads the
             ~/.nsmbrc file for additional configuration parameters and a
             password.  If no password is found the mount_smbfs prompts for
             it.


Thanks to all those who helped.

Jason Bourque


On 5/3/02 9:55 AM, "Jason Bourque" <[EMAIL PROTECTED]> wrote:

> I have yet to get this to work. It is the only thing holding me back from
> fully automating this.
> 
> Jason Bourque
> 
> 
> On 5/3/02 9:33 AM, "Adam Witney" <[EMAIL PROTECTED]> wrote:
> 
>> 
>> Yes, me also. However I was unable to get it to read the password file
>> (.nsmbrc) and it always prompted me for a password.
>> 
>> Any ideas why this is so?
>> 
>> Thanks
>> 
>> adam
>> 
>>> Rich,
>>> 
>>> This was _absolutely_ tremendously helpful. Thanks.
>>> 
>>> /Michael
>>> 
>>> 
>>> #!/usr/bin/perl
>>> 
>>> if(-f "/users/userid/.nsmbrc") {
>>> print "mounting share\n";
>>> system('mount_smbfs -W workgroupname //username@domain/share
>>> /users/userid/myshare');
>>> } else {
>>> print "password file does not exist\n";
>>> }
>>> 
>>> __END__
>>> 
>>> 
>> 
> 

Reply via email to