Geany Trouble: Compiling Perl Scripts (and general Perl questions)

I'm brand new to Perl because I hear it's one of the best and so far I've found that it is.  I used to program a little C++ here and there and a while ago taught myself python but I'd have to say Perl is better than both of them.  At any rate, that's neither here nor there.  I use Geany and love it, so I didn't see a reason to switch to something new for Perl.  Unfortunately I'm having some trouble with compiling.  Geany flat out refuses to.  I looked around and didn't find anything on here or in the wiki or on the Ubuntu forums other than one person who said to replace the compile command with the execute command. 
So, do I even need to compile my Perl scripts or is there something else I'm missing?
On a somewhat related note, the same user on the Ubuntu forums said that at the top of the code there should be:
#!/usr/bin/perl -w
I'm curious if I need the "-w" or what it even does since as of right now I have
#!/usr/bin/perl
and executing the program poses no problems.
Any help is greatly appreciated,
--Wes

Well, for one, perl is not a compiled language. You can if you want to, but it gains you few benefits. Google for "perl compiler" if you really must.
As for the second, do you know how the shebang line works in unix, and do you know what the -w option does for perl? The answer should reveal itself to you.
Make sure you "use strict;", it will catch many errors.

Similar Messages

  • 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

  • Perl script and unix users

    Hi, I have a perl script that connects to a regular users account, using DBI/DBD::Oracle. It works fine is the UNIX user is in the oinstall group, but if its in oracle, dba or neither it gives me the following error:
    DBI connect('orcl','xxxxxxx',...) failed: ORA-24327: need explicit attach before authenticating a user (DBD ERROR: OCISessionBegin) at /terida/opt/smarthost/updatedatabases.pl line 15
    I'm guessing here that Perl DBD::Oracle needs access to a specific file in the oracle installation perhaps ? I'm also gonna wager that letting it live in the oinstall group is not recommended..
    Tips?
    Thanks

    For people running into ORA-24327 errors with DBD::Oracle: the underlying cause is often a missing hostname, but the ORA-24327 error message is misleading. I've submitted a patch for DBD::Oracle to trap and report errors like this in OCIServerAttach, which will hopefully make it into the 1.29 release.
    https://rt.cpan.org/Public/Bug/Display.html?id=68958
    Marc

  • Calling the DTExec from Perl Script and need to get the Return Value (Sucess or Failure)

    I am able to execute the SSIS Package from Perl Script using DTExec. But i need to get the return code of the SSIS Execution. Is their any option available to get the Success or Failure information from Perl ?

    Exit codes returned from dtexec utility             
    When a package runs, dtexec can return an exit code. The exit code is used to populate the ERRORLEVEL variable, the value of which can then be tested in conditional statements or branching logic within a batch file. The following table lists
    the values that the dtexec utility can set when exiting.
    http://technet.microsoft.com/en-us/library/hh231187.aspx
    There's a wrinkle if the package is running in the SSIS Catalog:
    http://www.mattmasson.com/2012/02/exit-codes-dtexec-and-ssis-catalog/
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Workflow and General Use Questions

    Hello,
    I'll apologize right off the bat for these novice question because I'm sure the information is probably somewhere in the forum, I just haven't been able to find it. I just purchased Aperture after completing the demo as my library is getting too large to manage using standard file folders. I'm now trying to figure out the best practices for workflow and general use before I invest some serious time into importing and keywording all my pictures.
    1) Store files in the there current location, or in the Aperture Library? It seems to me that once they are moved to the Aperture library, you can only access them from within Aperture. I'm thinking I would be better off leaving them in their current location. For one, if I want to quickly grab a picture as an attachment to an email or something it seems easier to grab it from the standard folders. Second (and more important) I do not have room to keep all my pictures on my Macbook, thus most of them are stored on the Time Capsule.
    So... Keeping photos in their current location appears to be the best choice for me even though it adds an additional step every time I bring in new photos from my camera. Does this sound right?
    2) Is there a way to mark the photos that I have uploaded to my website (Smugmug)? Ideally, I would like to badge photos that have already been uploaded so I can quickly recognize them and ensure I'm not duplicating. I've considered using the rating, or keywords to indicate that a photo has been uploaded but both methods have disadvantages.
    3) Any suggestions for general workflow and organization resources (tutorials, books, websites, etc.)? I've looked at the videos on Apple's site but they obviously didn't get that detailed.
    Thanks for the help, sorry for the length.

    I recommend to Manage by Reference with Master image files stored on external hard drives (note that Aperture defaults to a Managed-Library configuration rather than a Referenced-Masters Library). Especially important for iMacs and laptops with a single internal drive. The workflow as described below in an earlier post of mine uses a Referenced-Masters Library.
    I feel pretty strongly that card-to-Aperture or camera-to-Aperture handling of original images puts originals at unnecessary risk. I suggest this workflow, first using the Finder (not Aperture) to copy images from CF card to computer hard drive:
    • Remove the memory card from the camera and insert it into a memory card reader. Faster readers and faster cards are preferable.
    • Finder-copy images from memory card to a labeled folder on the intended permanent Masters location hard drive.
    • Eject memory card.
    • Burn backup hard drive or DVD copies of the original images (optional strongly recommended recommended backup step).
    • Eject backup hard drive(s) or DVDs.
    • From within Aperture, import images from the hard drive folder into Aperture selecting "Store files in their current location." This is called "referenced images." During import is the best time to also add keywords, but that is another discussion.
    • Review pix for completeness (e.g. a 500-pic shoot has 500 valid images showing in Aperture).
    • Reformat memory card in camera, and archive originals off site on hard drives and/or on DVDs.
    Note that the "eject" steps above are important in order to avoid mistakenly working on removable media/backups.
    Also note with a Referenced-Masters Library that use of the "Vault" backup routine backs up the Library only, not the Masters. Masters should be separately backed up, IMO a good thing from a workflow and data security standpoint.
    Max out RAM in your MB and keep the internal drive less than 70% full.
    Good luck!
    -Allen Wicks

  • Validation Script for Dates and General Event Questions

    I have just started using Javascript, and am now using some objects and methods etc. that I did not even know about. It's progressing rather well, now I need to know some Livecycle Designer Basics that I can't seem to answer from my searches.
    Here's what I am trying to do in English:
    I want users to choose a date that they will miss at our Farmers Market. I have the date field on the form - works well.
    I want to validate the entry for:
    The date must be today or in the future
    AND
    The date must be before the closing date
    AND
    The date must be a Saturday
    Here's some script I've written and placed in the Validation Event (I have actually written more for testing out that the results are coming out properly):
    ----- form1.#subform[0].Missdate::validate - (JavaScript, client) ----------------------------------
    var entereddate = this.rawValue;// The date vendor will not attend as entered on the form
    var dentry = new Date(entereddate.slice(0,4),[entereddate.slice(5,7)-1],entereddate.slice(8,10),0,0,0); // month starts at 0!
    var closingdate = "October 04,2008" // closing date of the market
    var today = Date();// today
    (dentry.getDay() = 6);// and attempt to validate that the day = Saturday - nothing happens!
    But now -
    How do I actually validate this - my last statement seems to be ignored. How to I force a 'false' being returned? In Formcalc I simply put a camparison statement here and if it resulted in 'False' validation failed and if it resulted in 'True' it passed - What's the JS equivalent? Or are the variables giving me troubles?
    Maybe I'm putting this in the wrong Event? If so which one should I place it in.
    I want to force the user to enter the correct data - how do I code this - and put in a custom message refering to this. I may even get fancy and ask the user if the next Saturday is what they meant if they enter the incorrect one (this will be a real challenge!)
    I think I'm lacking some basic knowledge here that other posts have assumed. Please refer me to any help pages as well - although I've done extensive searching on this and have not really found a good explanation of Validation - only specific pages that are not basic or general enough for my understanding. Thank!

    In the validation script you have to allow the field's length to be 0, or
    it will not be possible to clear it...

  • Scripting and reflection API questions

    hi all,
    what are the qualified class names of classes evaluated through the script engine?
    i.e. if i eval("class C {}"), how can i then myReflectionContext.findClass("C")
    if this is impossible, is there some other way of creating instances of fx classes
    defined through the scripting API, on the java side?
    when i try to define a public class, or a package through eval, i get a compile error.
    is this normal, and why does it happen?
    is it possible to build fx functions from java, where the invoke method of the function is
    defined in java? is there a standard/recommended way of doing so? my hack-around
    right now is to just eval an fx function which calls a java method.
    is it possible to instantiate fx vars and bind them to other vars from java?
    is it possible to programmatically construct entire fx class definitions from java?
    thanks for any tips

    The constructor will of course need an instance of Outer as a parameter.
    class Outer {
       class Inner {
       public static void main(String[] args) throws Throwable {
          Class innerClass = Class.forName( "Outer$Inner" );
          // ok, so now i got the class,
          // how can i create an instance.
          java.lang.reflect.Constructor innerConstructor=innerClass.getDeclaredConstructor(new Class[] {Outer.class});
          Object innerObject=innerConstructor.newInstance(new Object[] {new Outer()});
    }- Marcus

  • Scripting and metadata field question

    I'm trying to set up a subscription response, that is triggered on a check box which adds all of a FCP project's element's Master Assests to it's member productions. I.E. FCP project "A" which contains elements 1,2&3 and resides in Production "Z", will have the master assets 1,2&3 added to production Z when metadata field "Add Assests" is checked.
    My questions are these:
    1) How do I create a metadata field with just a check box (this a very basic questions, but so far I've only been able to get a "TRUE/FALSE" boolean, which works, but isn't as nice as a check box.
    2) My approach to accomplishing this is a bit more convoluted than I think is necessary, it is thus:
    -Use subscription to write XML.
    -get AssetID for Project from XML
    -Use fcsvr_client listparentlinks /Asset/ID(from above) | grep out the element ids
    -use fcsvr_client listchildlinks /element/ID(from above) --linktype 12 | grep out the Asset ID for each of the elements listed in step 3
    -use fcsvr_client listchildlinks /Asset/ID(of origional FCP project) --linktype 1 | grep put the project ID for each of the member projects
    -use fcsvr_client make_link --linktype 1 /project/(ID from above) /asset/(each of the master assets for each element in FCP project)
    Is this the best approach? Can I add multile assests in one command on the last one? Has anyone already scripted this? Am I missing some automated way to do this in FCSvr already.
    Any help would be appreciated.
    Thanks.

    As to the question of if anyone has scripted this already, I have created a script which pulls all of the element metadata and places it in the associated assets of a Final Cut Pro project. You can check out the video that shows this in detail on the MacHarmony website. To be able to add the assets to a production would be a fairly easy step. The way you are going about it sounds like it should work just fine. We actually go direct to the postgres to improve performance and simplify the creation of tasks such as this, but the WriteXMLs should give you what you need as well.
    -- Jason
    Jason Perr
    MacHarmony

  • Book printing turnaround time(Canada) and general sharpening question

    Hi,
    I am nearly finished a book in Aperture and have a couple of questions, one specific to Canada and another, more general question.
    For those in Canada(or anybody else's experiences), how long does it take for the book to be published and sent out to you? My book project is to be a christmas gift and I would like to order one copy to proof, but if the turnaround is really long, then I would just order all the copies I need and hope everything turns out satisfactory.
    The second concerns sharpening. Since the images are resized for the individual use on a page, how do you optimize the sharpening? Is it better to oversharpen, or resize and sharpen each image prior to placing in the book?
    Thanks for any and all help. This is a first book so any other comments or suggestions would be appreciated!
    Scott

    Perhaps I can help with the first question. I tried the same approach and was quite happy with the first book quality; however, when I ordered several of the same book a few weeks later, I was very unhappy with the color casts and how they differed from the original book I had printed. The moral of the story is that the print quality is highly variable between printings.
    Aves

  • Sharing the /home partition and general partition questions

    Hello, I'm new to Arch, but have been using Linux for a few years (albeit still at a beginner level).  I'm going to be reinstalling Arch on an old computer that has a 40GB main drive so dual boot a "operational" OS for day to day stuff that I want to make sure will be running well and then another OS that I can test on or just have for trying new distros.  I also have an 80GB that I'll use for data (but I don't think I want that to be my home drive). 
    My question is:  If I have two different installations of Arch, (or a second distribution) should they share the same /home partition?  My thought is "no", but I didn't know.
    Also, I'm planning on splitting the 40GB drive the following partitions.  Do these make sense, or would there be a better way to do this? 
    5GB = / (OS #1)
    14.5GB = /home (OS #1)
    5GB = / (OS #2)
    14.5GB = /home (OS #2)
    1 GB = swap (both OSes)
    I have an ancient P4 w/ 512 of RAM.

    sharing /home drives would NOT be a good option in your case simply because you are going to use the 2nd OS as test/trials. Those other OSes may have different ways of storing config files etc which may lead to having a lot of junk to parse through. and if you ever use any configs for the Test OS, and they are somewhat in conflict with Arch - in any way - you might end up having to re-configure settings for your favorite apps in Arch.
    I have a 30 GB HDD on a 10 yr old laptop which has Arch. This is the partition scheme I have
    ╔═[16:10]═[inxs @ arch]
    ╚═══===═══[~]>> df
    Filesystem Type Size Used Avail Use% Mounted on
    /dev/sda3 ext3 7.0G 1.7G 5.0G 25% /
    none tmpfs 125M 100K 125M 1% /dev
    none tmpfs 125M 0 125M 0% /dev/shm
    /dev/sda4 ext4 16G 850M 14G 6% /home
    /dev/sda6 reiserfs 5.1G 558M 4.5G 11% /var
    /dev/sda1 ext2 61M 12M 47M 20% /boot
    ╔═[21:16]═[inxs @ arch]
    ╚═══===═══[~]>> fdisk
    Disk /dev/sda: 30.0 GB, 30005821440 bytes
    255 heads, 63 sectors/track, 3648 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000080
    Device Boot Start End Blocks Id System
    /dev/sda1 1 8 64228+ 83 Linux
    /dev/sda2 9 726 5767335 5 Extended
    /dev/sda3 727 1640 7341705 83 Linux
    /dev/sda4 1641 3648 16129260 83 Linux
    /dev/sda5 9 73 522081 82 Linux swap / Solaris
    /dev/sda6 74 726 5245191 83 Linux
    ╔═[21:18]═[inxs @ arch]
    ╚═══===═══[~]>>
    Since you have 10GB more than I do, you can adjust accordingly and make partitions for your test OSes as well.
    Last edited by Inxsible (2009-10-08 01:22:30)

  • WRT310N and general LAN questions

    I am trying to set up a music studio LAN in my home, and I just bought a WRT310N which I am hoping will help me but I'm not sure now.
    I have a Mac PowerBook G4 and a Dell WindowsXP from 2003 that doesn't have built in wireless, so I've been using a Linksys USB adaptor to access the 802.1 internet from my housemate's DSL connection.
    The problem is that I need Ethernet 802.3, 100Mbps connection to run the MIDIoverLAN software that I bought; gigabit would be preferred, and that's why I bought the WRT310N.
    Q: Is it possible for me to just use the WRT310N for my LAN, while accessing the internet on the other network? Linksys tech support just told me I should get an Access Point, but 802.1 isn't what I'm looking for.
    Q: Is there a more detailed way of seeing the stats on the WindowsXP computer than opening "Local Area Network Connection". When I have a cable between the 2 computers it says it's connected at 100Mbps, but I'd like to know more about what that means. Also, is that the maximum speed that an ethernet cable can carry?
    Q: Do I really need a DSL modem to set up this router?
    Q: What kind of ethernet card do I need in my WindowsXP computer to access this router at 100Mbps or higher?
    Thanks.

    If you require speed more than 100MBPS you should install a Gigabit Network Adapter...You should have your own modem so that you can also have internet on your computers and a private network...

  • Seed_pool and general storage question

    I am trying to deploy EBS 12.1.3 Prod and Apps VM templates on a VM Server using just internal disk and I am running out of space.
    So do I need the seed_pool files after I have successfully imported the templates as Virtual Machnes?
    I was thinking I could also maybe create an NFS share from another server and mount the /OVS/seed_pool directory that way if needed.
    Yes/No?
    Edited by: user6445925 on May 13, 2011 9:33 PM

    I don't know if there is a better way to manage this but what we are doing is NFS mounting multiple file systems from a NetApp then move the files we want to the file systems we want and connect it all back to the file system that /OVS is pointed to with symbolic links
    e.g.
    10.53.252.2:/vol/cos1_tier03_rms_testdev_os_ovm_nfs
    158G 87G 72G 55% /var/ovs/mount/1A57047A2ABE4210B37DEEF62C33CF1F
    10.53.252.2:/vol/cos1_tier03_rms_testdev_asm_ovm_nfs
    2.0T 356G 1.7T 18% /var/ovs/mount/0465D5417DAB4F9F9D4EFDB141940AE6
    10.53.252.2:/vol/cos1_tier03_rms_testdev_app_ovm_nfs
    450G 417G 34G 93% /var/ovs/mount/7B543EC95C0B40648377E762F2F04713
    [root@ovs-tst-01 /]# ls -l /OVS
    lrwxrwxrwx 1 root root 47 Feb 9 16:00 /OVS -> /var/ovs/mount/1A57047A2ABE4210B37DEEF62C33CF1F
    so copy the file you want into the 2tb file system then link them back to the same location in the 158gb file system where the /OVS link points to. This is the way that we have figured out to put different storage needs onto different volumes on the NetApp - specifically moving +ASM to a different storage pool on the NetApp.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Twisted Framework and general mpkg question

    hello... i recently got a mac and i have OS X Leopard, i am a python developer and i use twisted framework, i ran sort of a similar problem when i was working with Ubuntu Hardy...
    i downloaded twisted framework for os x, which MIT says its version 8.2, and i installed the mpkg and the framework works well, however my project relies on the PythonLoggingObserver method call which says its missing, but on a production linux server running same version of 8.2 the problem doesnt exist, so i printed the twisted._version_ and that indicated that apperently i have twisted 2.5 installed, anyone else had that problem, and is it os x specific, im not sure...
    also, anyone know good tool to remove mpkg installed libs/apps, i want to remove twisted now, but i have no idea where it is subinstalled... any info would be helpful
    thnx

    Post developer queries to the appropriate forum under OS X Technologies.

  • Runtime.exec("Perl Script writing and reading on I/O"), handling Streams

    Hi all !!
    In a first place : sorry for my english if it's not really understandable but I try to do as good as possible !
    I'm writing a GUI with Swing that will allow (in one of my multiple tables) the user to run a Perl Script.
    This Perl Script ask the user to choose a Folder ... then read all the files in this folder and for each file (xml File), extract the datas and put them in a database. But when a file that has to be inserted in the database contains this line : <Template_Used name="ST1.mtt"> and if the Template table in my database doesn't have the "ST1.mtt" stored ... the Perl Script ask to the user to give him the path of the file "ST1.mtt" so that the script can put the "ST1.mtt template" datas in the database.
    This script runs well when it is from a windows console.
    But I need a graphic interface !!!
    So I created a JButton "Process a folder".
    When the button is pressed, a JFileChooser appears and ask the user which Folder has to be processed.
    Then a Process is created with the command : ("cmd.exe /C \"C:\\Program Files\\Fluke\\Ansur\\ProcessFolder.bat\").
    The BatFile :
    {code}cd C:\Documents and Settings\tsd\Desktop\Gael-Project\Project_Files
    perl Process.pl
    exit{code}
    At this moment everything is working well.
    But my Process.pl (which is 300 lines long ... and that you don't even want to hear about), ask in a first time the Path of the folder to process and sometimes ask the path to a file (a template file).
    So I need to read and wirte on the STDIN/STDOUT during the exec of the Process.
    In order to handle this I created two different threads : one reading the Process.getInputStream with a BufferedReader and one other writing on the Process.getOutputStream with a PrintWrinter.
    What I need to do is :
    When I read a line from the InputStream saying "I need the path of the ST1.mtt file", I should run a JFileChooser ... the user find the file in the computer ... and I write in the OutputStream the path of the file, so that my Perl Script doesn't have un Unitialised value on <STDIN> and can continue to process !!
    I'm pretty sure it's possible ... because at the moment I just used a trick :
    When the user push the "process a folder" button, I write the paths in the OutputStream before than the script needs it and it works !
    But I need to write in the OutputStream only when it is time !!!
    Any idea ??
    Here are some parts of my code :
    {code}
    String filename = File.separator+"tmp";
              JFileChooser fc = new JFileChooser(new File(filename));
              fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY );
              // Show open dialog; this method does not return until the dialog is closed
         fc.showOpenDialog(null);
         Folder = fc.getSelectedFile();
              new GoodExec(cmd);
    {code}
    {code}
    public class GoodExec {
         public static Process proc;
         public static StreamGobbler errorGobbler;
         public static StreamGobbler inputGobbler;
         public static StreamGobbler outputGobbler;
         public GoodExec(String cmd)
         try
                   Runtime rt = Runtime.getRuntime();
              proc = rt.exec(cmd);
         // any error message?
         errorGobbler = new
         StreamGobbler(proc.getErrorStream(), "ERROR");
         // any input?
         inputGobbler = new
         StreamGobbler(proc.getInputStream(), "INPUT");
         // any output?
              outputGobbler = new
              StreamGobbler(proc.getOutputStream(), "OUTPUT");
         // kick them off
         errorGobbler.start();
         inputGobbler.start();
         outputGobbler.start();
         // any error???
         int exitVal = proc.waitFor();
         System.out.println("ExitValue: " + exitVal);
         } catch (Throwable t)
         t.printStackTrace();
    {code}
    {code}
    public class StreamGobbler implements Runnable
    InputStream is;
    OutputStream os;
    String type;
    Thread thread;
    public static String chaine;
    StreamGobbler(InputStream is, String type)
    this.is = is;
    this.os=null;
    this.type = type;
    StreamGobbler(OutputStream os, String type)
    this.os = os;
    this.is=null;
    this.type = type;
    public void start () {
         thread = new Thread(this);
         thread.start ();
    public void run()
    try
    if (is == null){
         PrintWriter toProgram = new PrintWriter(os);
         File FolderToProcess = ProcessFolder.Folder;
    String Folder = FolderToProcess.getPath();
    toProgram.write(Folder);
    toProgram.close();
    else {
         if (os == null){
         InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    String line=null;
    String comp = "Please enter the exact path of the directory that contains the files you want to process.";
    while ( (line = br.readLine()) != null){
         if (type.equals("INPUT")){
              chaine+=line+"\n";
         if (line.equals(comp)) {
              System.out.println("give directory");RUN A JFILECHOOSER AND GIVE THE DIRECTORY TO THE OUTPUTSTREAM
    System.out.println(type + ">" + line);
    is.close ();
    catch (IOException ioe){
         ioe.printStackTrace();
    {code}
    And here is an example of a simple perl script that could be used (it s a simple one !!) :
    {code}
    #!/usr/bin/perl -w
    use strict;
    print "Please enter the exact path of the directory that contains the files you want to process.\n";
    my $dir= <STDIN>;
    chomp ($dir);
    print "titallala $dir";
    if (the template of the file is not in the database){
    print "Please give me the template so that I can put it in the database";
    $dir= <STDIN>;
    chomp ($dir);
    {code}
    Thank you for your help ... if it's possible to help me !!
    Gael

    BalusC -- The line that gives me my NullPointerException is when I call the "DisplayProduct()" method. Its a dumb question, but with NetBeans how do I find out which reference could be null? I'm not very familiar with how NetBeans works with finding out how to debug. Any help you can give me would be greatly appreciated.The IDE is com-plete-ly irrelevant. It's all about the source code.
    Do you understand anyway when and why a NullPointerException is been thrown? It is a subclass of RuntimeException and those kind of exceptions are very trival and generally indicate an design/logic/thinking fault in your code.
    SomeObject someObject = null; // The someObject reference is null.
    someObject.doSomething(); // Invoking a reference which is null would throw NPE.

  • Unix Perl Script To verify a Up and Running Database on Different Server

    Unix Perl Script To verify a Up and Running Database on Different Server
    Hi
    can any one please tell me a solution to verify a Up and Running Database on Different Server other than the one where we run the unix perl script? The perl script should check if the database is running else it must exit.
    Thanks much
    Kiran

    The other best solution would be Enterprise Manager, load the EM on the other machine and install oracle intelligent agent on all the boxes where oracle is running and problem solved.
    FTP is only a File Transfer Protocol, you can upload/download the files but cant execute them.
    Apart from EM the best way is load oracle client and make connection to all the databases.
    AND There are some free oracle monitoring software available I dont know much about them but one is NAGIO (if I am not wrong), try that if you want.
    BTW whats the problem in monitoring the boxes from the same physical box, means just schedule a script using cron on the same physical box where oracle is to either make connection using SQLPLUS or check the processes using "ps" command and if there is anything wrong then send alert from that box only. In this way there is no need to maintain a central monitoring server.
    Daljit Singh

Maybe you are looking for

  • Will A 27 Inch Samsung LED Monitor work on my Macbook pro?

    I have a Mid 2009 Macbook Pro and I am not sure what ports it has. I see 2 ports apart from the USB (2 ports), Power and LAN. I am planning to buy a 27 inch Samsung LED monitor for the laptop. Here are the Macbook specs: Processor - Intel Core 2 Duo

  • Reg : xp20:current-dateTime() gives error

    Hi, When i use xp20:current-dateTime() function in XSLT 1.0 inside OSB ( replace activity ), it works fine when used alone ,but gives following error when used with dn:lookupvalue functio ( custom xpath function) BEA-382513: OSB Replace action failed

  • MacBook Pro Won't Start up after leopard Install

    I installed leopard on my MacBook Pro 2.0 GHz Intel Core Duo. Well at the end during the restarting phase it took forever to restart and my power was running out so not sure if it restarted or batt went dead. After recharging i turned on mac and wont

  • Clips are 'wrong size' when brought on to timeline

    Hi I've filmed some clips with new camcorder (AVCHD 1080 x50p) and set up project at 720 x 25p - hope I've got those figures right. When I take clips to timeline I don't see full clip in program monitor (though I see full clip in source monitor) and

  • How to make T410 combo jack working with 4 ring headset?

    This has puzzled me for a while - the mic part of the combo jack does not work. I have a headset which works properly with my Nokia E63 phone. the connector looks like http://commons.wikimedia.org/wiki/File:IPod_and_iPhone_audio_plugs.JPG although I