954,523 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to execute .exe file from the perl script

I want to know which command do u use to execute a .exe file from a server machine so that it gets installed on all the connected client machine using perl script.

vidya
Newbie Poster
2 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

You need to be more detailed. In general, you can execute executables with backticks. E.g.

`dir /p`


There isn't just some "command" in the Perl language that does what you want, though.

Rashakil Fol
Super Senior Demiposter
Team Colleague
2,658 posts since Jun 2005
Reputation Points: 1,135
Solved Threads: 177
 

Not only backticks, but also the command "system" works to execute external files.... you could also use an open command, and open the process with a pipe, but I'm not sure exactly what you mean about having 1 script run the same file on a bunch of machines... if you could be a little more specific it would help a lot.

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

i found out that there is a command called rshell for remote execution,but it is specific to unix.can anyone let us know how and from where to download the rshell for windows and also the synatx how to use it.

vidya
Newbie Poster
2 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

Search on CPAN.

It sounds to me like you're going to need some program running on the client machines, unless you plan on poking through a Windows security hole.

Rashakil Fol
Super Senior Demiposter
Team Colleague
2,658 posts since Jun 2005
Reputation Points: 1,135
Solved Threads: 177
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You