Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Remote command execution

Reply
Thread Tools

Remote command execution

 
 
be_tnt
Guest
Posts: n/a
 
      04-12-2005
Hello,

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

Thx!
 
Reply With Quote
 
 
 
 
phaylon
Guest
Posts: n/a
 
      04-12-2005
be_tnt wrote:

> 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

--
http://www.dunkelheit.at/
thou shallst fear...

 
Reply With Quote
 
 
 
 
jilerner@yahoo.com
Guest
Posts: n/a
 
      04-12-2005
read about ssh , then do
system("ssh ....");
in perl

 
Reply With Quote
 
Chris Mattern
Guest
Posts: n/a
 
      04-12-2005
be_tnt wrote:

> 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?"
 
Reply With Quote
 
Chris Mattern
Guest
Posts: n/a
 
      04-12-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:

> 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:erl?
--
Christopher Mattern

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
private data stashed in local/global execution context of PyEval_EvalCode disappears down the execution stack sndive@gmail.com Python 9 11-14-2007 10:31 PM
Microsoft Windows Routing and Remote Access Remote Code Execution Vulnerability imhotep Computer Security 0 06-23-2006 03:47 AM
Microsoft Windows Routing and Remote Access Remote Code Execution Vulnerability imhotep Computer Security 0 06-21-2006 02:03 AM
Remote Assistance fails to connect, remote remote host name could not be resolved Peter Sale Wireless Networking 1 12-11-2004 09:09 PM
Java books and remote execution sandiyan Java 1 03-03-2004 10:54 AM



Advertisments