Perl script run

I have a perl script that has to be run by a servlet ....
Can anybody tell me how to do that or where to look for some tutorial or
code to learn the process.
Thanks in advance.

Run the perl script as a cgi script. Have the servlet call the cgi script using HttpURLConnection.

Similar Messages

  • How to disable "This Connection is Untrusted" warning in firefox using shell or perl script running on Linux Platform

    We have QA automation jobs that invoke user interface tests in Firefox running on a virtual Linux host.
    My tests perform regression, but I'm held up because of the Firefox This Connection is Untrusted warning.
    My current requirement is to ignore this connection untrusted warning, which comes up when accessing an HTTPS website and i want this to be disabled through either a shell or a Perl script.
    I can do this manually using the steps below, but this will not work for my current problem since the virtual Linux hosts are created dynamically on submission of automation jobs.
    Go to Tools > Options > Advanced "Tab"(?) > Encryption Tab Click the "Validation" button, and uncheck the checkbox for checking validity.
    Is there any Perl or shell script that disables this certificate warning?

    There might be an add on to accomplish this:
    *[https://addons.mozilla.org/en-US/firefox/addon/skip-cert-error/ Skip Cert Error]
    However if we cannot find a solution there might be another place for support:
    *[https://support.mozilla.org/en-US/kb/where-go-developer-support Where to go for developer support]

  • Perl script running - "text file busy" error?

    Hiya--
    Recently, whenever I try to run a perl script, I get the following error:
    tcsh: nameofscript.pl: Text file busy.
    The permissions on the perl script are set to 755, and this error message occurs whether I type "nameofscript.pl" or "./nameofscript.pl" at the prompt. The initial line is of the script is
    #!/usr/bin/perl
    Has anyone else encountered this problem? I can't for the life of me figure out why it's occurring now. (I've run this script before without any problems. It's only within the last 2-3 weeks that this error pops up and won't go away, and only for .pl scripts.)
    Advice much appreciated.
    iBook Mac OS X (10.4)
    iBook   Mac OS X (10.4)  

    Hi Mahesh,
    I could suggest you some services that you may stop in Windows platform.. If not You may look into some services
    with analogous names and stop them. But you may go about stopping all database and SAP J2E services.
    The services are
    saposcols
    sapj2e00
    sapj2e01
    Hope this helps.
    Deepa

  • Can I run perl scripts on a iplanet App Server instead of web server

    Hello,
    We have some perl scripts running on a iWS 6.0 in DMZ (Tier1) which acess Oracle Server(Tier 3). I want to restrict machines on DMZ access Oracle server directly. Instead I want all the database calls to orignate from iPlanet App server on Tier 2. To make this happen I have to run Perl scripts on App server. Is this feasible as the J2EE iPlanet App can run only C++ or Java.. Any leads helps me lot..
    Thanks
    Sudhir Nallagangu

    According to the J2EE specs you should use EJBs and Servlets in the iAS! Running a perl script for db access sounds like good old cgi times.
    But generally it is possible to call a perl script from within iAS. But don't do it!

  • Perl scripts wont run

    I have a NW65 SP5 SBS server. The perl scripts appear in the browser as a
    text file and don't run. It appears as if the perl interperter is not
    running or doesn't see the script.

    I should add I am trying to get CGI scripts to run also and not having much
    luck. Perl 5.8.4.
    "Cyrus" <[email protected]> wrote in message
    news:xZbAi.391$[email protected]..
    > Perl scripts run from the command line but not browser.
    >
    > "Guenter" <[email protected]> wrote in message
    > news:UAbAi.390$[email protected]..
    > > Hi,
    > > "Cyrus" <[email protected]> wrote in news:ShbAi.384$vI3.370@prv-
    > > forum2.provo.novell.com:
    > >
    > > > I have a NW65 SP5 SBS server. The perl scripts appear in the browser
    as
    > a
    > > > text file and don't run. It appears as if the perl interperter is not
    > > > running or doesn't see the script.
    > > the NW65 default config only executes scripts located in sys:/perl/web
    > > through mod_perl; see the file:
    > > sys:/apache2/conf/mod_perl.conf
    > >
    > > Gnter.
    > >
    >
    >

  • Perl script seems to hang

    I'm trying to get the perl scripts that launches our iTunesU page to work but I came to a stand still, quite literally.
    I go to our URL, iTunes launches, it selects the Music Store but nothing comes up), then it goes to our itunes.pl script and it sits there for at least couple of minutes and then nothing happens. I'm guessing that our iTunesU page should come up after the perl script runs but that seems to be where things are not working.
    No errors, nothing. I enabled the debug option but I don't get any info at all. If I execute the script from the command line, after a couple of minutes I just get:
    Content-type: test/html
    and nothing else
    All the perl modules mentioned in the script are installed, we are running perl version
    Any ideas?

    My first quesiton is: Are you sure your credentials are correct? If you went to activate your iTunes U, then decided not to and activated it later, the credentials you got in the initial e-mail from Apple would be incorrect.
    Also, are you using the sample Perl script that Apple included, or something homegrown?
    Ken Newquist
    Lafayette College

  • Perl scripts

    I am attempting to run a perl script that creates RSS feeds of iTunes playlists that are compatible with the PSP gaming system from sony. The guy who released the script provided a lite webserver for windows, but just the perl script for Mac OS. I have no idea how to get a perl script running, and this one is supposed to run on port 8080--I've worked with apache before, but that's always been in linux and I'm not particularly comfortable messing around with anything on my Mac yet--I'd rather know what I'm doing first. Right now I've got the script in \Library\WebServer\CGI-Executables and I've chmod 755 it. I've got personal web sharing on, and the apache help page shows up when I go to localhost. What all do I have to do to get this script running? Any help would be greatly appreciated. Thanks in advance to anyone who wants to help me accomplish this wonderful waste of time.
    James

    I should add I am trying to get CGI scripts to run also and not having much
    luck. Perl 5.8.4.
    "Cyrus" <[email protected]> wrote in message
    news:xZbAi.391$[email protected]..
    > Perl scripts run from the command line but not browser.
    >
    > "Guenter" <[email protected]> wrote in message
    > news:UAbAi.390$[email protected]..
    > > Hi,
    > > "Cyrus" <[email protected]> wrote in news:ShbAi.384$vI3.370@prv-
    > > forum2.provo.novell.com:
    > >
    > > > I have a NW65 SP5 SBS server. The perl scripts appear in the browser
    as
    > a
    > > > text file and don't run. It appears as if the perl interperter is not
    > > > running or doesn't see the script.
    > > the NW65 default config only executes scripts located in sys:/perl/web
    > > through mod_perl; see the file:
    > > sys:/apache2/conf/mod_perl.conf
    > >
    > > Gnter.
    > >
    >
    >

  • Backticks in perl scripts

    Hello,
    can i use backticks in perl scripts on netware 6.5/sp5/sp6?
    best regards
    Pete

    I should add I am trying to get CGI scripts to run also and not having much
    luck. Perl 5.8.4.
    "Cyrus" <[email protected]> wrote in message
    news:xZbAi.391$[email protected]..
    > Perl scripts run from the command line but not browser.
    >
    > "Guenter" <[email protected]> wrote in message
    > news:UAbAi.390$[email protected]..
    > > Hi,
    > > "Cyrus" <[email protected]> wrote in news:ShbAi.384$vI3.370@prv-
    > > forum2.provo.novell.com:
    > >
    > > > I have a NW65 SP5 SBS server. The perl scripts appear in the browser
    as
    > a
    > > > text file and don't run. It appears as if the perl interperter is not
    > > > running or doesn't see the script.
    > > the NW65 default config only executes scripts located in sys:/perl/web
    > > through mod_perl; see the file:
    > > sys:/apache2/conf/mod_perl.conf
    > >
    > > Gnter.
    > >
    >
    >

  • To write a perl script for running a java program from cgi of web server

    I have to write a perl script to call a java program(.exe).I want to run this file through the cgi of the web server.
    java myprogram
    can anyone help me to write a perl script??

    It depends on what the java program does. For example, does it parse HTTP headers from standard input, or what?
    Are you sure it wouldn't be easier to turn the class into a servlet? etc.
    Take a look at IPC::Open2 and IPC::Open3 though. You may need them. (That's just a guess.)

  • How to run Perl script in Java program?

    Some say that the following statement can run Perl script in Java program:
    Runtime.getRuntime().exec("C:\\runPerl.pl");
    But when I run it, it'll throw IOException:
    java.io.IOException: CreateProcess: C:\runPerl.pl error=193
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:63)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at java.lang.Runtime.exec(Runtime.java:428)
    at java.lang.Runtime.exec(Runtime.java:364)
    at java.lang.Runtime.exec(Runtime.java:326)
    at test.runPerl.main(runPerl.java:16)
    Exception in thread "main"
    Where is the problem? In fact, I do have a Perl script named "runPerl.pl" in my C:/ directory. Could anybody tell me why it can't be run? Thanks in advance.

    Hello sabre,
    First of all thanks for your reply.
    I have tried like what you mentioned.
    Eventhough, i could get the exact error message.
    I could get the Exception
    "Exception:java.lang.IllegalThreadStateException: process hasn't exited"
    <code>
    import java.io.*;
    public class Sample{
    public static void main(String args[]) {
    String s = null;
    Process p;
    try
         p = Runtime.getRuntime().exec("tar -vf sample.tar");
         //p.waitFor();
         if(p.exitValue() == 0)
              System.out.println("CommandSuccessful");
         else
              System.out.println("CommandFailure");
    catch(Exception ex)
         System.out.println("Exception:"+ex.toString());
    </code>
    In this code, i tried to run the "tar command". In this command i have given -vf instead -xvf.
    But it is throwing
    "Error opening message catalog 'Logging.cat': No such file or directory
    Exception:java.lang.IllegalThreadStateException: process hasn't exited
    CommandFailure"
    "Error opening message catalog 'Logging.cat'" what this line means ie,
    I dont know what is Logging.cat could you explain me its urgent.
    Thanks in advance.
    Rgds
    tskarthikeyan

  • Running perl scripts off the preinstall script during a pkgadd

    Hello,
    I'm trying to build a custom package (apache2 + mysql + php + other stuff) and get stuck on some stone wall that I can't figure.
    Correct me if I'm wrong in my assumptions, and if able, could you provide a work around ? Here it is :
    - The preinstall script must be in /bin/sh , /bin/bash or any valid shell
    - Must be run by root, 'f course
    Now.. As I'm not that strong on bash/sh scripting, I tried to call a perl script off my preinstall script. Somehow my preinstall script just never call the .pl .
    This leads me to my third assumption :
    - It is impossible, not permissible to run other scripts from the preinstall script.
    Basically the perl script checks for some users in /etc/passwd + /etc/group, checks for some directories, create a custom SMF manifest, etc etc . I pretty much want the .pl script to be run.
    The script itself is well packaged, correctly inserted in the package's pkgmap, and so on.
    Any ideas ?
    Thanks,
    Jeff

    The script itself is well packaged, correctly inserted in the package's pkgmap, and so on.http://docs.sun.com/app/docs/doc/817-0406/ch3enhancepkg-10289?a=view

  • Under a GUI, I need to run a perl script, how to do this?

    Hi - I am writing a GUI for my clients and one of the things my program must do is run a perl script. I am able to run perl.exe but it seems like perl.exe is not running the script. I also tried to put the perl script in a batch file and then call the batch file from my java GUI program. I still get the same issue of just perl.exe running but thats not running the script. My last attempt was to write a small class to test if perl.exe can run the script under a command line. I got the perl.exe to run the perl script but how do I but implement that class in my GUI if my test class needs a command line? How can I run a command line in my GUI so the perl script can be run.
    The Runtime.getRuntime.exec(RunPerlScript) is not working like I want it.
    I also tried Runtime r = Runtime.getRuntime();
    Process p = r.exec(RunPerlScript);
    How can I run the MS-DOS prompt from my program if the Runtime Environment is running already. The Runtime Environment seems to not allow another prompt to be opened and from there I can run the perl script manually or automatically from my program.
    What does the "cmd /c start..." or "c:\\windows\\command.com..." do? I have seen that in the forum but it doesn't seem to be running the perl script. The perl.exe runs, but not the perl script. I need anyones help desperately. Damn microsoft, why did they remove completely the functionality of DOS. I have a feeling my program will run perfectly under a UNIX environment, because I needed to do was open another shell. Thats what I need in windows!
    Thank you for your help.
    Seigot

    hi
    I am working on this perl scripts do run on GUI's well the process command is fine try java 1.3 it works fine. if u need more help let me know
    all the best

  • How to run the perl script from java ?

    Hi , I need to run the pearl script from the server and to get the result of the script thro' java using SSH
    Is there any 3rd party SSH API in java ?
    Please help me out
    thanks in advance
    karthik

    This seems like a very strange thing to want to do.
    What is the perl script doing?
    Do other programs (not some shell script) access this server-side perl script from a different machine?
    If so how do they do it?
    What currently triggers the perl script to execute?
    What currently handles the output from the perl script?
    If you can answer these questions (and understand the answers) you should be able to come up with a different approach to this.
    You do not really want to call a remote perl script from a Java program, you want to achieve the effect you think that would have if you could do it.
    So find the answers to the above questions, write them on 3" x 5" cards and lay them out on your desk.
    What flow of control needs to happen? Which piece of code needs to produce or consume which piece of data?
    If that fails, ask you self or who ever is making you do this what are the use-cases?
    If you do not know what use-cases are or do not understand them well enough try reading
    Use Case Modeling (The Addison-Wesley Object Technology Series) by Kurt Bittner and Ian Spence (Paperback - Aug 30, 2002)
    http://www.amazon.com/s/ref=nb_ss_gw/002-7908514-4043267?url=search-alias%3Dstripbooks&field-keywords=use+cases&x=0&y=0
    It is a short and easy to read book on the subject and also one of the best.
    You MUST understand WHAT you are trying to achieve before you can decide HOW you are going to achieve it.

  • How to run NMS perl scripts in SunONE 6.1

    Any one have info on running the NMS perl scripts with the perl compiler shipped with 6.1? Particularly interested in nms FormMail. I need to get it running in on windows xp and Sun Solaris.
    WebServer is reporting the following error.
    failure: for host dbmrpm41.deluxe.com trying to POST /cgi-bin/FormMail.pl, cgi_s
    can_headers reports: HTTP4044: the CGI program C:\Sun\WebServer6.1\bin\https\per
    l\perl.exe did not produce a valid header (program terminated without a valid CG
    I header. Check for core dump or other abnormal termination)
    When I run FormMail.pl in a command prompt, I receive the following:
    Can't locate auto/POSIX/autosplit.ix in @INC (@INC contains: C:/Sun/WebServer6.1
    /bin/https/perl/lib/MSWin32-x86 C:/Sun/WebServer6.1/bin/https/perl/lib) at C:/Su
    n/WebServer6.1/bin/https/perl/lib/AutoLoader.pm line 146.
    at C:/Sun/WebServer6.1/bin/https/perl/lib/MSWin32-x86/POSIX.pm line 5
    Edited by: garyb on Mar 18, 2008 9:04 AM

    The Perl you found in the bin/https/perl directory is a private copy of Perl used to implement parts of the Web Server Administration Server. You shouldn't try to use it to run CGI scripts.
    Instead, you can download your own Perl distribution. ActiveState has a Perl distribution called ActivePerl. You can get it for free from http://www.activestate.com/Products/activeperl/. Other options are listed at http://win32.perl.org/.

  • Can servlets/ jsp automatically run perl scripts and executables?

    I'm a student and am new to to servlets and web programming in general.
    I need to know if it's possible to run perl scripts and executables automatically from servlets/ jsp.
    The program I am planning on creating should have a client outside a firewall that uploads perl files to a gateway machine inside the firewall, the servlet should be able to run this perl file, and then pass the resulting file as an argument to an executable, to be run by another servlet on a different server.
    I've tried looking everwhere for an answer to this and am about to revert to a cgi based approach because I'm not sure if it would work so any help/ suggestions would be much appreciated.

    Hallo,
    I think using java Runtime will help. you can do Processes that execute shell or system commands through
    Process process = Runtime.getRuntime().exec("your perl scripts here!");
    Bye

Maybe you are looking for

  • Need to develop a calibration report

    Hi experts, i need to develop a report for calibration input screen parameters are equipment no. date output screen Equipment no. equipment description Functional location order no. inspection lot no. inspection reading before calibration inspection

  • HT204053 How can I reset my authorised laptops?

    I've had the same apple ID for the past 8 or so years, and I've used itunes for a few laptops. I know the situation with 5 authorisations. The first laptop I had, was the 1st device authorised, the HDD was repaired, so when I re-installed itunes. it

  • IPod wont work after update! iTunes wont see it! Help???!!!

    Hi After updating the updater my iPod is no longer recognised by itunes. When i plug my ipod in it says do not disconnect and is recognised by the computer, but not itunes. The updater window comes up saying i need to update but it will only give me

  • How to filter a metric in a form EPM Cloud?

    How to filter a metric in a form? I have a form that shows a dimension in the grid and one of the columns of that dimension have to filter the data.  For example: The dimensión Account with the member "Type".  This member is associated to a smarlist,

  • The Windows support software is not available.

    This error message appears when I try to download the windows support software. What do I do?