in reply to Output to File from Telnet
In perl, backticks qx aka `` are used to execute a program and capture the output, observe
Also, you need to get yourself a good code [editor/IDE, gvim_portable, http://padre.perlide.org/,$ perl -e " warn `Can’t enable:` " 'Can’t' is not recognized as an internal or external command, operable program or batch file. Warning: something's wrong at -e line 1.
Also, self documenting variable names are better than comments
my $RouterIP; my $RouterUsername; my $RouterPassword; my $RouterPasswordEnabled;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Output to File from Telnet
by kiwi_chris (Initiate) on Feb 25, 2011 at 02:53 UTC |