Search Results

Search: Posts Made By: posner
6,876
Posted By posner
Unfortunately i don't have uuencode on the system...
Unfortunately i don't have uuencode on the system .
6,876
Posted By posner
Sendmail gz Attachments
Hi All,

I have a problem again with sendmail content type . I am trying to attach the gz file to the html email but couldnt figure out even after extensive google.

Here is my code.


(
...
10,782
Posted By posner
Thanks Corona688 it worked echo...
Thanks Corona688 it worked


echo "--GvXjxJ+pjyke8COw"
echo "Content-Type: image/png"
echo "Content-Disposition: attachment; filename=\"graph_file.png\""
echo "Content-Transfer-Encoding:...
10,782
Posted By posner
Sendmail Png Attachments
I use sendmail to send html emails, my script works perfect and sends email with plain text attachment.

Now i need to attache png file to the email and this attachment part is not working.


(...
6,528
Posted By posner
@jim mcnamara attachment has to be with...
@jim mcnamara

attachment has to be with sendmail as i am using a html email.


mailx or mutt options i use it for regular emails.
6,528
Posted By posner
Thanks guys for pointing out the env variables ...
Thanks guys for pointing out the env variables
i changed the the script to


cat - $data_dir/TheMailer.txt <<EOF | /usr/sbin/sendmail -oi -t
From: ${MAILFROM}
To: ${MAILTO}
Subject:...
6,528
Posted By posner
as i dont know any specific env variable, here is...
as i dont know any specific env variable, here is the list.


[admin@db user]$ printenv
HOSTNAME=db.net
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
QTDIR=/usr/lib64/qt-3.3
USER=admin...
6,528
Posted By posner
sendmail from cron
Hi all,

Recently i started using sendmail instead of mutt to send the email .
In one script i have both sendmail and mutt included and they both give different emails.





##some HTML...
3,260
Posted By posner
Ldap search query
Hi All,

I have a existing Ldap query which take a HOME as variable and gives the result where i grep for a particular line.



ldapsearch -h server_domain_name -p 389 -D ...
4,523
Posted By posner
Ok looks like i need the higher timestamp column...
Ok looks like i need the higher timestamp column too, i mean its must

can you tell what you doing here

Thanks
4,523
Posted By posner
thanks Pludi One question does this give...
thanks Pludi
One question does this give higher timestamp
4,523
Posted By posner
no the first two columns are not sorted , most...
no the first two columns are not sorted ,
most chances are the timestamp(last) column will be sorted but even if the getting higher timestamp causes long script then we can eliminate it
4,523
Posted By posner
awk/sed to get unique row
Hello ALL,

I have very huge file almost 25G size
contents of the file are "|" delimited columns on each row


eg:
1396745|1078529|KDS|2011-04-21 00:00:00.0|1100|30|2|2011-04-20...
1,115
Posted By posner
Really Thanks dude .. i tried s/ *|/|/g...
Really Thanks dude ..

i tried s/ *|/|/g expecting it to be space but no use
quick google too did not help
1,115
Posted By posner
How to remove ^I ?
not sure what is this but any can help me delete this ^I


cat -A file.txt


CLAS^I^I|890^I|7,10,12,341,305,308,29,54^M$
LCLS^I^I|891^I|7,10,12,341,305,308,29,54^M$...
8,219
Posted By posner
same thing is asked here ...
same thing is asked here

https://www.unix.com/shell-programming-scripting/152101-compare-eliminate.html

https://www.unix.com/shell-programming-scripting/152364-delete-lines-file-date-line.html
6,585
Posted By posner
awk -F"|" -vD=$(date -d '-30 days' '+%d/%m/%Y')...
awk -F"|" -vD=$(date -d '-30 days' '+%d/%m/%Y') '{if($NF<D) print $0}' infile
930
Posted By posner
search for difference and find the above line
hello All,

i have to two files package.today and package.yesterday , the extension of the files says what day the file belongs to .
contents of the file change little bit everyday .

i am...
3,071
Posted By posner
may be this may help $5 is the column to...
may be this may help

$5 is the column to compared from ur file


awk -vD=$(date -d '-50 days' '+%Y-%m-%d') '{if($5>D) print $0}' infile


This gives the lines with date from last 50 days
1,959
Posted By posner
Thanks Guru, UR script almost works but i...
Thanks Guru,

UR script almost works but i have some issue when i extended the file little


01
02
7now
abc Top 40
music
Kidz Only!
MC 851
MC 852
MC 853
7NOW
Arch_Diac
xyz2
abc
h211...
1,959
Posted By posner
awk or sed to format text file
hi all,

i have a text file which looks like the below

01
02
abc Top 40
music
Kidz Only!
MC 851
MC 852
MC 853
7NOW
Arch_Diac
xyz2
abc
h211
Commacc1
Commacc2
Commacc3
1,403
Posted By posner
no sample i gave is exact 01 02 abc ...
no sample i gave is exact
01
02
abc

def

xyz
x12
03
04


z123


x234
1,403
Posted By posner
sorry for that i want the values between...
sorry for that

i want the values between the numbers

anything starting with .. has come with its associated number above it as comma separated

for
01
02 (abc,def,xyz,x12)
03
04...
1,403
Posted By posner
awk to print in a line
hi all,
i have text file with sample text

01
02
.. abc

.. def

.. xyz
.. x12
03
04


.....
2,098
Posted By posner
hey Scrutinizer this may be asking extra work...
hey Scrutinizer this may be asking extra work from you but ,
i usually read this forum to learn things, the above command will do the job but if we see its like greek and latin
so it will be nice...
Showing results 1 to 25 of 36

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