in reply to Get into the server and execute perl command

The easiest way is to set up ssh port forwarding and run something like

ssh -L 3456:localhost:5678 that.other.machine

Then, your local port machineA:3456 will be connected to the (localhost) port 5678 on machineB, and you can just use LWP::Simple to fetch http://localhost_3456 and get data from http://localhost:5678 on machineB.

Replies are listed 'Best First'.
Re^2: Get into the server and execute perl command
by Anonymous Monk on Feb 25, 2015 at 06:07 UTC
    ok, suppose, I get into the server, now how should i do to use LWP::Simple. Can you provide me a demo of this algo. Second, the output come from http://localhost:3456 is an " unformatted XML". and I'm wondering if the Machine B gives its result because Perl is not installed in it.

      I suggest that you read the documentation of LWP::Simple. I'm not sure what other things you would need. This is not a code writing service.

      Also, I do not understand what you mean by "unformatted XML", and how it would be problematic.