e24ohm
January 21st, 2010, 08:17 PM
User Input
Folks I am trying to develop a script, which will map a windows network share and prompt the user for their credentials.
I use the following code
#!/bin/bash
Mount –t smbfs //servername/sharename /mnt/mountdirectory –o username=windows username,password=windowspassowrd
How do I get my script to prompt the user for ‘windowsusername’ and ‘windowspassword’
Folks I am trying to develop a script, which will map a windows network share and prompt the user for their credentials.
I use the following code
#!/bin/bash
Mount –t smbfs //servername/sharename /mnt/mountdirectory –o username=windows username,password=windowspassowrd
How do I get my script to prompt the user for ‘windowsusername’ and ‘windowspassword’