Help for this page

Select Code to Download


  1. or download this
    sub doXYZ{
       ...
    }
    
  2. or download this
    #Delete Example
    $theCmd="del "."\"".$SourcePath."\"   >> ".$LOG_DIR."\\".$F_DUMMY." 2>
    +&1";
    ...
    #Delete Example
    $theCmd="copy "."\"".$SourcePath."\\".$SourcePathFileName."\""." "."\"
    +".$DestPath."\\".$DestPahtFileName."\""." >> ".$LOG_DIR."\\".$F_DUMMY
    +." 2>&1";
    $returnCode=system $theCmd;
    
  3. or download this
    while(1==1){
       #code here for processing files
    
       sleep(60);
    }
    
  4. or download this
    #FilesToPostgres.txt looks like this:
    processedFileName1.csv
    ...
    
    #PostgreSQL then has a scheduler running which reads that file into a 
    +table, and then loops its rows and runs subsequent commands like
    COPY tableName FROM /path/to/processedFileName1.csv