Need help in running a script

Need help in running a script

am 26.10.2010 07:28:56 von Chaitanya Yanamadala

--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--

Re: Need help in running a script

am 26.10.2010 13:43:42 von Shlomi Fish

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

She's a hot chick. But she smokes.
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@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/