siddheshsawant has asked for the wisdom of the Perl Monks concerning the following question:
Hello monks !!!
I am working on some perl project where I am suppose to rsh the remote file whose name is stored in the perl variable.I am not been able to invoke that rsh command with variable name.Instead if I use variable value like in below case if I used VMWARE instead of $platform in the rsh command then the program works fine else it take whole platform_poll_pkg as a variable
$platform = "VMWARE"; my $platform_poll = `rsh lcla238 -l root find /nightly_results/today/$ +platform_poll_pkg.log`; if(($platform_poll) && (`rsh lcla238 -l root cat /nightly_results/toda +y/$platform_poll_pkg.log` =~ /All done/)){ print "Hello\n"; }else{ print"file doesnot exist !!!\n"; }
If anybody knows how to deal with this issue then kiundly let me know. Thanks in advance !!!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: variable ambiguity in rsh command
by ikegami (Patriarch) on Jun 29, 2010 at 02:00 UTC |