pradeep,krishna has asked for the wisdom of the Perl Monks concerning the following question:
Hello fellow monks.
I am using bellow code to check for sqlplus connectivity.
my $ConnString = "SQLPLUS -L " . $Login_Name . "\/" . $Login_Password +. "\@" . $DB_Name . " \@sqlfile.sql"; my $ReturnCode=system($ConnString); sleep(2); #--Give time to autheticate. if ($ReturnCode!=0) { print scalar (localtime)," E: SqlPlus Database Login unsuccessful +l.\n"; return -1; } print LOG_FILE scalar (localtime)," I: SqlPlus Database Login succe +ssfull.\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl script to wait till the command execution completes.
by hippo (Archbishop) on Mar 03, 2014 at 09:26 UTC | |
|
Re: Perl script to wait till the command execution completes.
by marto (Cardinal) on Mar 03, 2014 at 09:14 UTC | |
by pradeep,krishna (Scribe) on Mar 03, 2014 at 09:44 UTC | |
|
Re: Perl script to wait till the command execution completes.
by zentara (Cardinal) on Mar 03, 2014 at 12:08 UTC |