Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: SQL script processor and executor

by hbm (Hermit)
on Jul 27, 2012 at 13:38 UTC ( #984030=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        if ($shpath) {    
          #print SH "chmod 700 $shpath/shell_$ts.sh\n";
    ...
                     qq[plink -batch -pw "${passwd}" ${user}\@${server} -m
    + "${sh}" >> "${output}" 2>${outerr}\n];
        } else {
          ...
    
  2. or download this
          #if ($sqlline =~ /^=/) {        # Convert the output to record v
    +iew if prefixed by =
          #  $sqlline =~ s/^=//;          # trim off the =
          if ($sqlline =~ s/^=//) {       # trim off '=' and convert recor
    +d view if prefixed by =
            $rsql = 1;
          }
    
  3. or download this
        #$server   =~ s/\s+.*//;
        #$user     =~ s/\s+.*//;
    ...
        #$dbpasswd =~ s/\s+.*//;
        #$shpath   =~ s/\s+.*// if $shpath;
        map{$_ && s/\s.*//} $server,$user,$passwd,$dbconn,$dbuser,$dbpassw
    +d,$shpath;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984030]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2015-07-06 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls