Tag Archives: DATA

Sendmail error message

By sakie

Hi i am having a probleme with my sendmail server. using it as a mta to send out email.
keem on getting this error message back.

—– The following addresses had permanent fatal errors —–
(reason: 554 Denied [CS] [97356615.0.9766467.00-2383.12960496.s11p02m014.dotnetwork2.co.za] (Mode: normal))

—– Transcript of session follows —– … while talking to XXXX.co.za.inbound10.dotnetwork2.co.za.:
>>> DATA
<<< 554 Denied [CS] [97356615.0.9766467.00-2383.12960496.s11p02m014.dotnetwork2.co.za] (Mode: normal)
554 5.0.0 Service unavailable

The server is not blacklisted and ip reputations is good.

Not all is doing it just a few emails.

Thank u

From: http://www.unix.com/unix-dummies-questions-answers/220841-sendmail-error-message.html

Configure LVM to gain access to the data on disks

By prvnrk

Hello friends,

We had to upgrade RHEL 4.x to 5.7 so we took complete backup. Since DIRECT UPGRADE not possible, we rebuilt 5.7 from scratch.

We had lvm configuration on DATA disks in previous OS and now we need to configure such that we should be able to have same old LVM configuration (like VGs and LVs etc.) so that we could access the data on those volumes.

Could any kind soul provide me step-by-step on how to do this? (Yes, I have backup of /etc/lvm etc. of previous OS).

I thought of just copying Old /etc/lvm into new one and start lvm daemon. will it work?

TIA

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Help for applying same actions to different directories with identical sub-directories

By A-V

Hello all

I have a situation and would be grateful if you will help me… I am not sure whether it is even possible

I have few folders/directories —e.g. A – B – C -in my MAIN directory
for each of them I would get the data from folder called DATA and go through a long list of actions which involves creating new sub-directories.
So e.g. will run a program for A -> creating 5 new sub-directories – doing some calculations and getting some results out
the same happens for B and C
I have tried to put an FOR loop around it which seems to work if I only have one of them there as the address for the directories will get confusing as my program refers to sub-directories in the A,B,C

Code:

###for A
FILES="A/*"
for X in $FILES
do
FILES="data/*"
for X in $FILES
.
.
.
done
##for B
FILES="B/*"
for X in $FILES
do
FILES="data/*"
for X in $FILES
.
.
.
done


Now my problem is how to adapt it so when I am on MAIN, I can run all of them at the same time and related directories would be created inside each of them separately …
the Path seems something like this

Code:

MAIN/A/ -> data, id, count, count/result
MAIN/B/ -> data, id, count, count/result
MAIN/C/ -> data, id, count, count/result


I am not sure whether something like this is possible … or they might be a very simple solution but my mind is not supporting now
Thank you in advance
Anna

Source: FULL ARTICLE at The UNIX and Linux Forums

Can Anyone help me..to do my task in simple way..

By nex_asp

Hi…

I am trying extract data using 2 files..

1. Data file – DATA.TXT containing data to be extracted
2. Column file – LIST.TXT header column to be extracted

output not coming properly..

if the header field name matches with data file header extract data…this actually I wanted …

Code:

#!/bin/bash

DATAFILE=${1:-DATA.TXT}
COLUMNFILE=${2:-LIST.TXT}

awk -F, -v colsFile="$COLUMNFILE" '
BEGIN {
j=1
while ((getline 0) {
col[j++] = $1
}
n=j-1;
close(colsFile)
for (i=1; i<=n; i++) s[col[i]]=i
}
NR==1 {
for (f=1; f<=NF; f++)
if ($f in s) c[s[$f]]=f
next
}
{ sep=""
for (f=1; f<=n; f++) {
printf("%c%s",sep,$c[f])
sep=FS
}
print ""
}
' "$DATAFILE"


Code:

cat DATA.TXT
ID, head1, head2, head3, head4
1, 25.5, 1364.0, 22.5, 13.2
2, 10.1, 215.56, 1.15, 22.2

cat LIST.TXT
ID
head1
head4

sh extract.sh DATA.TXT LIST.TXT
1,1, 25.5, 1364.0, 22.5, 13.2,1, 25.5, 1364.0, 22.5, 13.2
2,2, 10.1, 215.56, 1.15, 22.2,2, 10.1, 215.56, 1.15, 22.2


and I want to display it as space separated ..

Code:

awk '{print $3,$2,$1}' FS="," DATA.TXT
whether here some changes can be done to get desired output


please help..

Attached Files
File Type: txt LIST.TXT (15 Bytes)
File Type: txt DATA.TXT (87 Bytes)

Source: FULL ARTICLE at The UNIX and Linux Forums