Need help in running a script

--001636834070d690c004937e634d
Content-Type: text/plain; charset=UTF-8

Hai

I have developed an application in the perl and it is working fine. Now the
problem is that everytime i need to run the script i need to login to the
server and do it from there. Is there any possibility that if i send an http
request from a browser automatically the script start running in the sever.




Chaitanya

--001636834070d690c004937e634d--
Chaitanya Yanamadala [ Di, 26 Oktober 2010 07:28 ] [ ID #2049615 ]

Re: Need help in running a script

Hi Chaitanya,

I'm de-CCing the PHP lists because I may not have permissions to post to them.

On Tuesday 26 October 2010 07:28:56 Chaitanya Yanamadala wrote:
> Hai
>
> I have developed an application in the perl and it is working fine. Now the
> problem is that everytime i need to run the script i need to login to the
> server and do it from there. Is there any possibility that if i send an
> http request from a browser automatically the script start running in the
> sever.

First of all, you can write a small web-service (such as a Perl CGI-or-
equivalent script or a PHP script) that will in turn run the Perl app you've
written (is it a command-line app?) locally. See:

http://perl-begin.org/uses/web/

One problem may be that the host's web-service won't have the necessary
operating system privileges to run your Perl application under your login
user.

Secondly, note that you can use Perl (or a different language) to automate a
login to the server (using such protocols as SSH or Telnet) and automatically
run your app there. This may prove to be a better idea than setting up a web-
service because there's one less point of failure.

Regards,

Shlomi Fish

--
------------------------------------------------------------ -----
Shlomi Fish http://www.shlomifish.org/
Parody of "The Fountainhead" - http://shlom.in/towtf

<rindolf> She's a hot chick. But she smokes.
<go|dfish> She can smoke as long as she's smokin'.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Shlomi Fish [ Di, 26 Oktober 2010 13:43 ] [ ID #2049621 ]
PHP » gmane.comp.php.windows » Need help in running a script

Vorheriges Thema: please unsubscribe
Nächstes Thema: Compile Problem on Visual Studio 2010