Remote command execution

P

phaylon

be_tnt said:
Is it possible with Perl to execute a command on a remote system?
Yes[1].

Thx!

You're welcome.


p

[1] More Details? More Details! or have a look at CPAN on search.cpan.org
 
C

Chris Mattern

be_tnt said:
Hello,

Is it possible with Perl to execute a command on a remote system?

Thx!

Provided the remote system is running a service to execute commands
submitted remotely, yes. (If not, it'll be difficult for anything to run
commands remotely, unless you can contact the machine via magic
telepathy). Exactly how you might do this would depend on what
service the system is running.

--
Christopher Mattern

"Which one you figure tracked us?"
"The ugly one, sir."
"...Could you be more specific?"
 
C

Chris Mattern

read about ssh , then do
system("ssh ....");
in perl

One: He's told us nothing about the remote system. If it's not running
sshd, ssh isn't gonna do him much good.

Two: Why screw around with system() when you have Net::SSH::perl?
--
Christopher Mattern

"Which one you figure tracked us?"
"The ugly one, sir."
"...Could you be more specific?"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,083
Members
48,773
Latest member
Kaybee

Latest Threads

Top