in reply to Re: How to connect to remote machine
in thread How to connect to remote machine

You're getting the uninitialized value error because $2 is not escaped. Try this:

my $command = `cat /proc/meminfo |grep -w MemTotal |awk '{print \$2} + +'`;