digitalx has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl print "Enter the hostname of the computer: "; $hostname = <stdin>; print "Enter the sharname you wish to mount: "; $share = <stdin>; print "Enter a valid username: "; $username = <stdin>; print "Enter the password:"; system "stty -echo"; $password = <stdin>; system "stty echo"; print "\nSpecify a mount point?: "; $mntpoint = <stdin>; $options = "username=$username,password=$password"; system("mount", "-t", "smbfs", "-o", "$options", "//$hostname/$share", + "$mntpoint");
20030505 Edit by Corion: Changed formatting to use code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mounting windows shares from Linux
by allolex (Curate) on May 05, 2003 at 06:57 UTC | |
by digitalx (Novice) on May 05, 2003 at 08:21 UTC | |
by allolex (Curate) on May 05, 2003 at 08:32 UTC | |
by pfaut (Priest) on May 05, 2003 at 14:02 UTC | |
by allolex (Curate) on May 05, 2003 at 14:20 UTC | |
|
Re: Mounting windows shares from Linux
by cored (Scribe) on May 05, 2003 at 14:20 UTC |