in reply to Re: Need help in while entering password
in thread Need help in while entering password
Hi, Here is my code. Here I have hard coded my user name and password but password prompts. For $username1 = $password1, and $username2 = $password2. Here only $username2 = $password2 works. For $username1 = $password1 contains @ and it takes only the character before @ "Case" and it doesn't take entire password. I need you help to overcome this issue. Regards, Anand Mathan.
use strict; use warnings; my $username1 = "anand"; my $username2 = "girish"; my $password1 = "Case@123"; my $password2 = "Seat123#"; my $path = ("\"c:\\Program Files\\SecureFX\\sfxcl\""); my $server = "gaddwuat02"; @trans_file = ("/Q"." "."c:\\eqsys.txt"." "."sftp://$username:"."$pas +sword"."\@"."$server"); print "@trans_file\n"; my @trans = system("$path @trans_file");
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Need help in while entering password
by AnomalousMonk (Archbishop) on Aug 19, 2013 at 14:49 UTC | |
by anandooty (Initiate) on Aug 19, 2013 at 16:36 UTC | |
by anandooty (Initiate) on Aug 19, 2013 at 18:08 UTC | |
by AnomalousMonk (Archbishop) on Aug 20, 2013 at 04:37 UTC | |
Re^3: Need help in while entering password
by Random_Walk (Prior) on Aug 20, 2013 at 14:34 UTC | |
Re^3: Need help in while entering password
by Anonymous Monk on Aug 19, 2013 at 10:35 UTC | |
by anandooty (Initiate) on Aug 19, 2013 at 12:52 UTC | |
by Anonymous Monk on Aug 19, 2013 at 15:06 UTC |
In Section
Seekers of Perl Wisdom