http://www.perlmonks.org?node_id=855733

sagarkha has asked for the wisdom of the Perl Monks concerning the following question:

Hi I am trying to mount a Windows Share to my RHEL 4 machine using this script
system("mount -t smbfs -o username=sachins,domain=POWERSOFT,password= +***** //172.28.89.164/PS /mnt/test");
But after execution it always prompt for the password again.
[root@innovation scripts]# ./moun.pl Password:
Is there a way i can save password in a file or in array and use it whenever it prompts.