Search Results

Search: Posts Made By: msrahman
1,344
Posted By kevintse
If you want to list all files matching the...
If you want to list all files matching the pattern under /etl/PDAC/CBA/Supplier/, use the following script:
#!/usr/bin/perl
use strict;
use warnings;
opendir(DIR, "/etl/PDAC/CBA/Supplier/") or...
22,045
Posted By Corona688
It seems a common misconception that there's a...
It seems a common misconception that there's a Specific Way®©™ to do things in a computer language and you can find all the answers by googling "how do I do X in perl". It really doesn't work that...
22,045
Posted By bartus11
Try:#!/usr/bin/perl chomp($d=`date...
Try:#!/usr/bin/perl
chomp($d=`date +%Y%m%d%H:%M_%p`);
open F,">XYZ_$d.txt";
print F "A,B,C,D,E\n";
2,225
Posted By pravin27
Once you successfully load the file make tar of...
Once you successfully load the file make tar of that file and move to your archive directory and if this is successful then remove original file(if required) as below.
tar -cvzf fileA.tar.gz fileA...
3,169
Posted By pravin27
Try this, $filepattern =...
Try this,

$filepattern = '^\d{1,4}.*\.A0NW9693\.NDM.\HBIDT\.*\.AD34XADJ\.txt';

opendir ( IDIR, $inputdirectories) || die "Error in opening dir\n";
while( ($file = readdir(IDIR))){
if...
8,201
Posted By Scott
I should think so. Just add ...
I should think so.

Just add

zx01211.PDAC_UPDATE_ALLOW_DENY_SERV;

before the closing /, or

execute zx01211.PDAC_UPDATE_ALLOW_DENY_SERV;

after it.

If you just want to execute without...
10,854
Posted By DGPickett
Yes, and logically, if you get not 0 or 2,...
Yes, and logically, if you get not 0 or 2, something is amiss, so you might want to structure error handling like this:

case $rc in
(0)
Success processing . . . .
;;
(2)
Warning...
10,854
Posted By methyl
I don't remember you posting what Shell you are...
I don't remember you posting what Shell you are using but it seems to be one which supports "==".

Without trying to understand more random code in depth, you may need to look at the "man" page for...
10,854
Posted By Scott
Hi. Your first for loop is completely...
Hi.

Your first for loop is completely unnecessary. Remove it.

And you could change:

"${logfile}" | uuencode "${attachment}"

to

uuencode "$logfile "$attachment"

(the point of this...
278,709
Posted By Neo
Simple rules of the UNIX.COM forums:
RULES OF THE UNIX AND LINUX FORUMS

For the latest version of the community rules (the official community rules page), please visit here. (https://www.unix.com/misc.php?do=cfrules)


No flames,...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 09:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy