Need explanation .pl file

Hi,
I have the .pl file it is not calling any where by the program,but it is transfering the oracle viewoutput file to another data_top.
how is it possible.
can any body explain me the below file how it is working.
Thanks in advance.
this is the code in the .pl file:
#!/usr/bin/perl
# Author: Stian H. Larssen (Indal Haugseth)
# Created: 2008-06-25
# Description: Removes newline characters when line ends with given string.
# Changelog
# 16.11.2008 Stian Indal Haugseth
# - Write to temp file while processing. Move/rename temp file to
# destination file when finished.
# 16.11.2008 Stian Indal Haugseth
# - Moved init of temp file variable to remove errormassege when not having
# any arguments.
use strict;
use warnings;
use Getopt::Std;
my %option = ();
getopts("dp:", \%option);
my $line = '';
my $in_file_arg = $ARGV[0];
my $out_file_arg = $ARGV[1];
my $replace_string = "¤#¤";
my $time_start = time();
my $temp_dir_name = 'temp';
my $out_dir;
my $out_file_name;
my @system_args;
if ($option{p}) {
$replace_string = $option{p};
if ((!$in_file_arg) || (!$out_file_arg)) {
print STDERR "Syntaks: $0 -dp <mønster> <kildefil> <utfil>\n";
print STDERR "Parameter -d vil slette kildefil etter kjøring.\n";
print STDERR "Parameter -p <mønster> lar endre søkemønster.\n";
exit 1;
print "Script startet : ". localtime($time_start) ."\n";
# If $out_file_arg contains any slash, split file name and directory name.
if ($out_file_arg =~ m/\//) {
($out_dir, $out_file_name) = $out_file_arg =~ m/(.*\/)(.*)$/; # split dir and filename
if ((!$out_dir) || (!$out_file_name)) {
print STDERR "Klarte ikke splitte fil/mappe fra $out_file_arg, script stoppet\n";
exit 1;
} else {
# File name does not contain any slashes, set default directory to ./ and use $out_file_arg as file name.
$out_dir = './';
$out_file_name = $out_file_arg;
# Create temp file variable after parameter check to remove errormessage when $out_file_arg not initialized
my $out_tmp_file = $out_file_name.'_tmp_'.$$; # Adding tmpPID to temp file
my $out_tmp_dir = $out_dir.$temp_dir_name; # Concatenate temp dir name to out dir
if (!-e $in_file_arg) {
print STDERR "Fant ikke filen $in_file_arg, script stoppet\n";
exit 1;
if (!-r $in_file_arg) {
print STDERR "Har ikke rettigheter til å lese filen $in_file_arg, script stoppet\n";
exit 1;
# Create temp dir.
if (-d $out_tmp_dir) {
if (!-W $out_tmp_dir) {
print STDERR "Har ikke skriverettigheter til midlertidig mappe $out_tmp_dir, script stoppet\n";
exit 1;
} else {
# Mode removed from mkdir command due bug in old perl version 5.005_03.
mkdir $out_tmp_dir or die "Kunne ikke opprette midlertidig mappe $out_tmp_dir, script stoppet";
open (INFILE, "<"Kunne ikke åpne kildefilen $in_file_arg, script stoppet";
# create or replace file with +>
open (OUTFILE, "+>", $out_tmp_dir.'/'.$out_tmp_file) or die "Kunne ikke åpne midlertidig målfil ".$out_dir.$out_tmp_file.", script stoppet";
print 'Skriver midlertidig fil '.$out_tmp_dir.'/'.$out_tmp_file.".\n";
while (<INFILE>) {
$line = $_;
$line =~ s/$replace_string\n//;
print OUTFILE $line;
close (INFILE);
close (OUTFILE);
@system_args = ("/bin/mv", $out_tmp_dir.'/'.$out_tmp_file, $out_file_arg);
system(@system_args) == 0 or die 'Klarer ikke flytte '.$out_tmp_dir.'/'.$out_tmp_file.' til '.$out_file_arg.', returkode '.$?.', script stoppet';
print "MÃ¥lfil $out_file_arg opprettet.\n";
if ($option{d}) {
unlink($in_file_arg) or die "Klarer ikke slette kildefilen $in_file_arg, script stoppet";
print "Kildefil $in_file_arg slettet!\n";
print "Script utført : ". localtime(time()) . "\n";
print "Script kjøretid: ". (time - $time_start) . " sekunder.\n";

i found..
[http://www.koders.com/cpp/fidB6E67F2C1853CEA7457A9152C7F65CC3543B536B.aspx|http://www.koders.com/cpp/fidB6E67F2C1853CEA7457A9152C7F65CC3543B536B.aspx]
That file is not jni.h. It has nothing to do with the question and comes from a source which is very dubious when it comes to Java programming.

Similar Messages

  • I am running out of memory on my hard drive and need to delete files. How can I see all the files/applications on my hard drive so I can see what is taking up a lot of room?

    I am running out of memory on my hard drive and need to delete files. How can I see all the files/applications on my hard drive so I can see what is taking up a lot of room?
    Thanks!
    David

    Either of these should help.
    http://grandperspectiv.sourceforge.net/
    http://www.whatsizemac.com/
    Or search 'disk size' in the App Store.
    Be carefull with what you delete & have a backup BEFORE you start, you may also want to reboot to try to free any memory that may have been written to disk.

  • What is the exact name of the cable I need to connect my old hard drive from my macbook pro (it has been taken out of the computer) to my new macbook pro?  I need to transfer files from the old hard drive to the new computer.

    What is the exact name of the cable I need to connect my old hard drive from my macbook pro, which has been removed from the computer, to my new macbook pro?  I need to transfere files from the old hard drive to the new computer.

    No eSATA to USB. Just a SATA/IDE to USB adapter. Google SATA/IDE to USB adapter and you will get tons of links to buy them. Most likely your local computer electronics store has them, although they might be more expensive buying locally than online.
    I have several. You can get either USB 2, which what I recommend, or USB 3. USB is backward compatible so a USB 3 adapter will work on a USB 2 port and a USB 2 adapter will work on a USB 3 port. Backward compatible in both directions.
    I suggest a USB 2 type because there have been some problems with certain USB 3 devices, the USB 3 interface used isn't all that good in those certain devices. USB 3 is still fairly new where as USB 2 has been around for over 10 years.
    synghem wrote:
    Thank you LowLuster,
    At the apple store they said I needed an esata to usb wire.  But looking at wires on line has been confusing.  Is sata the same as esata?  How do I know if I need a usb 3 or usb 2?

  • HT204266 I erase all application of my iphone 4 with erase restore and now it's in restore mode. Now is there any way to restore my iphone without backup. Please help me. I have no need my previous file i just want my i phone ok and work smoothly as new p

    Hi,
    I erase all application of my iphone 4 with erase restore without any backup & i also lose the product serial number. Now it's in restore mode. Now is there any way to restore my iphone without backup. Please help me. I have no need my previous file I just want my iphone4 ok and work smoothly as like new ipone justlike i bought it at first time. I can't restore it. So Please help me to solv this proble.

    See Here  > without the Backup  >  http://support.apple.com/kb/HT4137

  • Help needed in splitting files using BPM

    Hello experts,
    I am working on an interface where i need to split files within BPM.
    I know,i can achieve it in Message Mapping by mapping Recordset to Target structure and then using Interface Mapping within Transformation step.But i dont want to follow this.Is there an alternative way to achieve this within BPM.
    I have an input file with multiple headers and i need to split for each header.My input file looks like this:
    HXXXXXABCDVN01
    MXXXXXXXXXXXXXX
    MXXXXXXXXXXXXXX
    SXXXXXXXXXXXXXX
    HXXXXXABCDVN02
    MXXXXXXXXXXXXXX
    MXXXXXXXXXXXXXX
    SXXXXXXXXXXXXXX
    HXXXXXABCDVN03
    MXXXXXXXXXXXXXX
    SXXXXXXXXXXXXXX
    Is there a way, where i can specify this condition within BPM , that split files for every H.
    Thanks in advance.
    Regards,
    Swathi

    Hi,
    have your target structure with occurence as 0...unbounded in the mapping and map the header filed to the root node (repeating parent node) of the target structure....this will create as many target messages as the header fileds....if you want to send these messages separately then use a block in BPM with ForEach option....
    Splitting and Dynamic configuration can be applied in the same mapping.
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Dec 18, 2008 12:59 PM

  • I need to upload file from my computer to website, when I click browse to look at which documents I want it does nothing.

    I need to upload file to quicken loans I click the blue button that says Browser on it so I can search what documents to upload it doesn't open the folders to look for the documents to select.

    Hi there. you have '''search.conduit''' set up as your '''about:newtab''' page.
    This could be add-ware. Is this what you want?
    '''[https://addons.mozilla.org/en-US/firefox/addon/searchreset/ Mozilla Search Reset]''' {web link}
    This add-on is very simple: on installation, it backs up
    and then resets your search preferences and home page
    to their default values, and then uninstalls itself. This
    affects the search bar, URL bar searches, and the home
    page.

  • What is the need of the file Adobe\Acrobat\8.0\Collab\Workflows?

    Hi
    I am using Adobe PDF Annotation Service with Documentum.
    I am facing a performance issue with the Annoration Service.
    The size of the C:\Documents and Settings\<username>\Application Data\Adobe\Acrobat\8.0\Collab\Workflows is increasing by 14 KB whenever I use the service to Annotate PDF Documents.THis happens at all my client machines.
    What is the need of this file in the context?
    Can we do something to restrict the inflation of this particular file?
    Can anybody help me to understand the process behind this?
    Thanks,
    Sleeba

    Hi
    I am using Adobe PDF Annotation Service with Documentum.
    I am facing a performance issue with the Annoration Service.
    The size of the C:\Documents and Settings\<username>\Application Data\Adobe\Acrobat\8.0\Collab\Workflows is increasing by 14 KB whenever I use the service to Annotate PDF Documents.THis happens at all my client machines.
    What is the need of this file in the context?
    Can we do something to restrict the inflation of this particular file?
    Can anybody help me to understand the process behind this?
    Thanks,
    Sleeba

  • I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    The way that Dropbox works is that it keeps a copy of all your files in your local Dropbox folder on your hard drive (which is, by default, directly under your home folder). Adding files to that folder will sync them to the Dropbox server.
    You do of course have to download the Dropbox application to enable this (download link at the top right of http://dropbox.com ).
    Matt

  • What plug-in do I need to import file from scanner to make a batch job

    what plug-in do I need to import file from scanner to make a batch job

    Hi Atul,
    I`m having PS Elements Ver.13 and scanner Epson V500 Photo.
    Nice if your can help me.
    Sten

  • What software do I need to view files or watch movies on my imac/time capsule, from my macbook (away from home)?

    What software do I need to view files or watch movies on my imac/time capsule, from my macbook (away from home)?
    imac is running lion...macbook is couple years old.
    thnx

    It appears you have a iPad Mini and a MacBook. Assuming that, this
    About renting movies from the iTunes Store - Apple Support
    says
    If you rented the movie on your iOS device or Apple TV, you can’t move it to any other device.
    This is the Mac Mini desktop forum

  • What cable do I need to transfer files to my 2013 iMac from my 2009 iMac?

    what cable do I need to transfer files to my 2013 iMac from my 2009 iMac?
    Thanks in advance,
    Braden

    There aren't any ports in common between both Macs except the USB, that can't be used to connect both Macs. The easiest solution is to connect both Macs with a FireWire 800 cable and get the Thunderbolt to FireWire adapter, which you will have to connect into one of the Thunderbolt ports of the 2013 iMac.
    Then, to transfer files to the 2013 iMac, you have to put the 2009 iMac in Target Disk Mode, so start it holding the T key, and you will see the FireWire icon on the screen. Now, the 2013 iMac is detecting the hard disk of the 2009 iMac as an external disk, so open a Finder window and select it, under "Devices", and you will be able to transfer the data you want to your 2013 iMac.
    If you have to transfer applications and settings, too, I recommend you to use Migration Assistant with both Macs connected with the FireWire cable, too > http://support.apple.com/kb/HT4889

  • I need to retrieve files from my iPad but I forgot my password. I tried to restore it but then it said I had to turn off Find my iPad on my iPad. I can't do this because I can't get into it. What do I do?

    I need to retrieve files from my iPad but I forgot my password. I tried to restore it but then it said I had to turn off Find my iPad on my iPad. I can't do this because I can't get into it. What do I do?

    If the iPad was running iOS 7,  iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Hi, WWhen I turn on my mac pc, enter my account password my page wont load up , I can access the internet through my families account but not mine. There is a message telling me I need to delete files but the page won't load anything. Any help appreciated

    Hi
    When I turn on my pc and log into my account there is a message telling me I need to delete files. But the page won't load up anything to allow mw to do this. I am concerned I may have lost all my personal info.
    I can log into other family members accounts but not mine.
    Any help appreciated
    Thanks

    You only have to clone your mac when using certain cable modem.  You don't clone your mac when using dsl.
    Greetings from Northern Ontario, Canada

  • I have built a slideshow in iPhoto -- I need/want the file in .mp4 format.  How do I do that?

    Ok, I don't know why I am here, but!
    I have built a slideshow in iPhoto -- I need/want the file in .mp4 format.  How do I do that?
    The question may have been answered somewhere but I was sent here -- so her I am.
    Still I think I need my slideshow in .MP4 format to play on windows/smartTVs and the .m4v file that export offers seems to be the only option and it fails.
    I am using iPhoto v9.5.1 on a Macbook Air.
    help.

    Try changing the extension to .m4v and see if that will do the trick.  It did for me on another occasion where it wouldn't play as .MP4.  If it works it's a simple solution.
    I compared an .m4v and an .MP4 file in Qujicktime Player via the Winde ➙ Show Movie Inspector menu and both were  the same codec:
    H.264, 1280 × 720, Millions
    AAC, Stereo (L R), 44.100 kHz
    Check to see what codec the Movie Inspector window shows.
    OT

  • We are currently looking for a way to link images to a design file within programs like InDesign and Illustrator using an HTML link instead of a local file.  We are hosting our images in SharePoint and need the design file to retain it's links, no matter

    We are currently looking for a way to link images to a design file within programs like InDesign and Illustrator using an HTML link instead of a local file.  We are hosting our images in SharePoint and need the design file to retain it's links, no matter who on our network opens the design file.

    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

Maybe you are looking for

  • MBP on a big screen

    Got my 15" MBP hooked up to my 55" sony and man it's great! I've heard that you can't use a big TV for normal computing needs like reading e-mail etc. because the image isn't clear enough. Hogwash!! its as clear as my monitor only a LOT BIGGER. My qu

  • IPod Touch 2nd Gen won't show up in iTunes but does appear in My Computer

    When I connect my 2nd Generation iPod touch to my laptop it will not appear in iTunes. It does, however, appear in my Computer. I have worked through all of the troubleshooting guides on the Apple Support section, and have uninstalled and reinstalled

  • Code Insight and mixed case PL/SQL identifiers

    Let's assume I hava a package "Test" with a procedure "DoSomeReallyHardWork". I would like code insight to complete a call of this procedure and preserve the original case. I don't like "test.dosomereallyhardwork" and I strongly dislike "TEST.DOSOMER

  • SQL for finding chunk or no keyboard values

    Hi all , I have table where users are allowed to enter data from excel sheet but while viewing it in application due to non key board values are like ¶,     ã, £ the validation getting failed and values are not loaded kindly help me in finding those

  • Hi there I want to have 2 phones one for work an a good ph out of wk but on 1 SIM card any solutions

    Hi there I'm wanting 2 phones 1 for wk an a good ph for out of wk on 1 SIM card so I can finish wk put that ph down an use my good ph not call diversion , all these flash apps an you can't do this from any ph so I've been told