texmex72 has asked for the wisdom of the Perl Monks concerning the following question:
So I need to use "NET USE" in a Perl script to map a Network drive andi am having an issue i believe it has to do with the password having a "$" in it.
$pw = 'TBHxD6$e60r--rjt&'; my $cmd = "NET USE g: \\\\<NETWORK DRIVE>\\<NETWORK FOLDER> $pw /user: +<USERNAME>"; warn $cmd; # whoops!! system($cmd); print "done";
If i enter the exact line from the command line with the same password it works fine but not in Perl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Password with special characters (updated)
by haukex (Archbishop) on Jun 24, 2019 at 17:42 UTC | |
by texmex72 (Initiate) on Jun 24, 2019 at 19:48 UTC |