I cannot seem to get this text file to format. Its as if the awk statement is being treated as a simple cat command.
I manned awk and it was very confusing. I viewed previous posts on this board and I got the same results as with the
the awk command statement shown here. Please help.
... (6 Replies)
Hi all
i have 2 input files
1st file is
N1 | N2|N3|N4|N5|N6|N7|N8|N9
4041491000|245160|1|0|0|1|0|0|0
4041401505|152178|1|1|1|1|0|0|0
4041450004|014052|1|1|1|1|0|0|0
4041450005|580916|1|1|1|1|0|0|0
4041491000|230990|1|0|1|1|0|0|0
4041460001|338317|1|1|1|1|0|0|0
2nd file
N1 |... (8 Replies)
Hi All,
Can any one solve this prob.
Im sending a textfile content as a mail body while sending a mail using shell script.
But, that textfile content is a unic command output.
So, in mail, im not getting the correct alignment as in textfile.
What may be the reason behind this.
Can... (1 Reply)
Hi
I have the following output
Message man amm (9196) is calling
Hello & Alert man amtrr (9197) is stopped
Find amfi (19198) is cancelled
Engine Item aea (19203) is notified
Engine Item2 aea2 ... (8 Replies)
Hi,
I have a string in log file from that i need to pick the username.
the string is like this--
pid 2172 tid 3124: 160: 10110847: userName :
pid 2172 tid 3124: 160: 10110847: userName :
pid 2172 tid 3124: 160: 10110847: userName :
pid 2172 tid 3124: 160: 10110847: userName :
pid... (5 Replies)
Hi freinds,
My problem is I have a script which is used for our office work...
in that with my userid i can append the LOGFILE with the output which i get while running the script..
for this i use the below command
output >> $LOGFILE
but with the same script my colleague is... (6 Replies)
How can i make a script to add text before the first word on a line in a textfile :
Example:
Old line:
is my place
New line:
this is my place
Please use and tags when posting code, data or logs etc. to preserve formatting and enhance readability, thanks. (3 Replies)
Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions.
... (4 Replies)
Hello,
If i run the following script from the cmdline it works just fine however if i run it via root cronjob it doesn't write to the file at all. It is chmod 777 now so shouldnt be any right issues.
Shellscript looks like this:
/usr/bin/top -b -n 1 -u nagios >> /var/log/test.log
Cronjob... (7 Replies)
My first post, so don't kill me :)
Say i open some textfile with some example like this.
on the table are handy, bread and wine
Now i know exactly what is in and i want to separate and sorted it in terminal to an existing file with another 2 existing lines in like this:
table
plane ... (3 Replies)
Discussion started by: schwatter
3 Replies
LEARN ABOUT CENTOS
qmail-command
qmail-command(8) System Manager's Manual qmail-command(8)NAME
qmail-command - user-specified mail delivery program
SYNOPSIS
in .qmailext: |command
DESCRIPTION
qmail-local will, upon your request, feed each incoming mail message through a program of your choice.
When a mail message arrives, qmail-local runs sh -c command in your home directory. It makes the message available on command's standard
input.
WARNING: The mail message does not begin with qmail-local's usual Return-Path and Delivered-To lines.
Note that qmail-local uses the same file descriptor for every delivery in your .qmail file, so it is not safe for command to fork a child
that reads the message in the background while the parent exits.
EXIT CODES
command's exit codes are interpreted as follows: 0 means that the delivery was successful; 99 means that the delivery was successful, but
that qmail-local should ignore all further delivery instructions; 100 means that the delivery failed permanently (hard error); 111 means
that the delivery failed but should be tried again in a little while (soft error).
Currently 64, 65, 70, 76, 77, 78, and 112 are considered hard errors, and all other codes are considered soft errors, but command should
avoid relying on this.
ENVIRONMENT VARIABLES
qmail-local supplies several useful environment variables to command. WARNING: These environment variables are not quoted. They may con-
tain special characters. They are under the control of a possibly malicious remote user.
SENDER is the envelope sender address. NEWSENDER is the forwarding envelope sender address, as described in dot-qmail(5). RECIPIENT is
the envelope recipient address, local@domain. USER is user. HOME is your home directory, homedir. HOST is the domain part of the recipi-
ent address. LOCAL is the local part. EXT is the address extension, ext.
HOST2 is the portion of HOST preceding the last dot; HOST3 is the portion of HOST preceding the second-to-last dot; HOST4 is the portion of
HOST preceding the third-to-last dot.
EXT2 is the portion of EXT following the first dash; EXT3 is the portion following the second dash; EXT4 is the portion following the third
dash. DEFAULT is the portion corresponding to the default part of the .qmail-... file name; DEFAULT is not set if the file name does not
end with default.
DTLINE and RPLINE are the usual Delivered-To and Return-Path lines, including newlines. UFLINE is the UUCP-style From_ line that qmail-
local adds to mbox-format files.
SEE ALSO dot-qmail(5), envelopes(5), qmail-local(8)qmail-command(8)