http://qs321.pair.com?node_id=173555

Xtrac has asked for the wisdom of the Perl Monks concerning the following question:

I've created a program to do a job on my machine, it works fine(on my machine). I used perl2exe to convert it to an exe and placed it on one of our servers. When I try to run (double-click) it (the exe) on the share on the server (from my desktop) it fails, but if I rcmd or go to the server physically it runs fine. How do i get it to run on the server when the exe is accesed from a shared drive? -Xtrac

Originally posted as a Categorized Question.

  • Comment on How do I execute a perl exe on a remote machine via short-cut

Replies are listed 'Best First'.
Re: How do I execute a perl exe on a remote machine via short-cut
by pepik_knize (Scribe) on Jun 14, 2002 at 06:13 UTC
    When on Windows, if you only double-click on something on a shared drive, it attempts to run the program on the machine you're connecting from. For example, if you try to open an excel file, it'll fail if your local machine doesn't have excel installed. So what's happening is your script is running on the wrong machine, so it fails. You will either need to login (ssh) or set up the equivalent of a cron job. I believe you can do both options with cygwin.
Re: How do I execute a perl exe on a remote machine via short-cut
by Anonymous Monk on Jun 14, 2002 at 02:58 UTC
    not all files on a shared drive can be executed espacially on unix systems. the user must log-in the remote system via a terminal emulator (telnet)