in reply to Re: List DB tables
in thread List DB tables
your comments really helped and I was able to get rid of .ksh file and get sendmail part into perl..
but my current problem is log file contents doesn't gets email only name of file appear in email body part... so what exactly I shoul write for $generatedMailText is it
$outputFile or log.list_tables
$outputFile = log.list_tablesopen my $fh, '|-', 'mailx -s "List report" test@mail' or die "ERROR: C +ouldn't open pipe: $!";
print $fh $generatedMailText or die "ERROR: Couldn't write to pipe: $! +";
Thanks, homerclose $fh or die "ERROR: Closing pipe failed: $!";
|
|---|