Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 02-03-2008, 11:22 AM   #1 (permalink)
MrCoffee's Avatar
 
Monster Techie

Join Date: Feb 2006

Location: UK

Posts: 1,852

MrCoffee is on a distinguished road

Default Script help plz!

this is driving me nuts, there must be a simple solution but I just can't find it.

I've added a line into my .bashrc file to mount my NAS box but I can't figure out how to feed a carriage return to the password request (the password is blank).

So I have this:

smbmount //192.168.0.8/Volume_1 ~/NAS

and when I open a terminal I get prompted for the password.
__________________
Intel core I7 920
GA-EX58-UD3R
6GB OCZ platinum 1600
XFX HD4890
Noctua nh-u12p
Corsair HX520
Antec 300
Samsung 1TB F1 Spinpoint
Samsung SM2443BW 24"
MrCoffee is offline  
Old 02-03-2008, 11:24 AM   #2 (permalink)
Saxon's Avatar
 

Join Date: Feb 2007

Posts: 6,375

Saxon is just really niceSaxon is just really niceSaxon is just really niceSaxon is just really nice

Default Re: Script help plz!

Have you tried just hitting enter? or admin?

Scripting is not my strong suit so i doubt i would be of much use troubleshooting it for you.
__________________
I am not here for long I am deploying soon so please don't expect anything long winded.

Saxon is offline  
Old 02-03-2008, 11:31 AM   #3 (permalink)
MrCoffee's Avatar
 
Monster Techie

Join Date: Feb 2006

Location: UK

Posts: 1,852

MrCoffee is on a distinguished road

Default Re: Script help plz!

I just tried redirecting a file containing only a carriage return into the command but it doesn't work, i'm sure that would work with a dos batchfile. :-/

Edit: Ah never mind, me being dumb, I should of looked at the man pages first. There are options for the smbmount command that allow you to specify login details.

smbmount //192.168.0.8/Volume_1 ~/NAS -o password=""

Still, i'd be interested to know if there is a script solution if anyone knows.
__________________
Intel core I7 920
GA-EX58-UD3R
6GB OCZ platinum 1600
XFX HD4890
Noctua nh-u12p
Corsair HX520
Antec 300
Samsung 1TB F1 Spinpoint
Samsung SM2443BW 24"

Last edited by MrCoffee; 02-03-2008 at 11:43 AM.
MrCoffee is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A shutdown script Nick Windows Operating Systems and Software 3 01-30-2008 03:58 PM
PHP Script Yek Programming Discussions 8 10-29-2007 06:35 PM
router to router setup help plz!! hitm4n666 Computer Networking & Internet Access 3 10-25-2007 03:01 PM
Need a good captcha generating php script surut Windows Operating Systems and Software 1 05-26-2007 09:23 AM