11-21-2008
First you use the following command
unix2dos a1.txt a1.txt
then you execute your snippet, let me know the result.
Thanks,
Shahnaz.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
what I have to write in a shell that every time that it arrives a new
e-mail has to perform a program taking some data from the e-mail. (2 Replies)
Discussion started by: mmistero
2 Replies
2. UNIX for Advanced & Expert Users
Hi,
Below a try to send an email to a local user can be seen. I can NOT send e-mail anywhere, but I receive email perfectly.
<pre>
isgsi01(root)10: mail aris < /home/aris/mail2send
dbm map "Alias0": unsafe map file /etc/mail/aliases: No such file or directory
</pre>
..... but the... (3 Replies)
Discussion started by: guest100
3 Replies
3. UNIX for Dummies Questions & Answers
When I try to use the CLI mail, I get the following error. What's wrong?
Welcome to Darwin!
% mail root
Subject: test
test
.
EOT
% /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory
Do I just need to change the... (1 Reply)
Discussion started by: chenly
1 Replies
4. UNIX for Dummies Questions & Answers
Hello!
I have two servers with Solaris 2.7
I send mail from first to second.
The first is also dns. It's known as "ns.oldb.pkb", second is "dev.pkb".
Ping works successful from 1 to 2 and vice verse.
But when I am trying on first server :
sendmail -v user@dev.pkb < /etc/motd
it is... (3 Replies)
Discussion started by: Colf
3 Replies
5. OS X (Apple)
i have mac os x 2.2 jaguar and Mail wont open any links? When i click on them it just does nothing. does anybody know why/how to fix it? please help me..
thanks, blip (4 Replies)
Discussion started by: Blip
4 Replies
6. UNIX for Dummies Questions & Answers
if ping $1 3
then
{
sleep 1
echo "HELO domain.co.uk"
sleep 1
echo "MAIL FROM: mark@domain.co.uk"
sleep 1
echo "RCPT TO: markms@domain.co.uk"
sleep 1
echo "DATA"
echo "This is a test from a file."
echo "."
echo "quit"
} | telnet $1 25
else
echo problem
fi
The above is... (1 Reply)
Discussion started by: markms
1 Replies
7. Shell Programming and Scripting
hi folks ,
i am working in UNIX . i was wondered when i gone through below lines in some scripts. Can anyone describe me how this is working . thanks in advance..
/usr/sbin/sendmail -t < $0.email
/usr/bin/mailx -s "$EDI_HOST: Report....@ `date`" GROUP_ALERT <<EOF
`cat $0.email`... (3 Replies)
Discussion started by: rdhaprakasam
3 Replies
8. Red Hat
Hi,
i've a redhat linux 9 upadated by redhat from 7 version to 9 version. A couple of days ago i was a problem with my mail, in other words i'm not able to get any email nor to send any email. I've a proxy configuration and i tried to set iptables in order to verify the port. The 110,255 and 995... (1 Reply)
Discussion started by: pintalgi
1 Replies
9. UNIX for Advanced & Expert Users
I am uxing HP UX mailx, I want to send mail with:
1) to list
2) cc list
3) sender address
4) mail body
5) subject
6) attachment
I am using :
(cat cc_list; cat mail_body; ux2dos file_1 | uuencode attachment.txt)|mailx -m -s "subject" -r sender@abc.com recepient@abc.com
cc_list... (2 Replies)
Discussion started by: gautamadak
2 Replies
10. UNIX for Dummies Questions & Answers
Hi All,
I am having a problem that is very similar to the one being discussed here. I am using OS X and am trying to send mail from the OS X Terminal to my GMail account. The mail seems to go through, but gets stuck at Google's servers. I have a log file from the /var/mail directory that... (0 Replies)
Discussion started by: danielsutton
0 Replies
LEARN ABOUT FREEBSD
escape
escape(1) Mail Avenger 0.8.3 escape(1)
NAME
escape - escape shell special characters in a string
SYNOPSIS
escape string
DESCRIPTION
escape prepends a "" character to all shell special characters in string, making it safe to compose a shell command with the result.
EXAMPLES
The following is a contrived example showing how one can unintentionally end up executing the contents of a string:
$ var='; echo gotcha!'
$ eval echo hi $var
hi
gotcha!
$
Using escape, one can avoid executing the contents of $var:
$ eval echo hi `escape "$var"`
hi ; echo gotcha!
$
A less contrived example is passing arguments to Mail Avenger bodytest commands containing possibly unsafe environment variables. For
example, you might write a hypothetical reject_bcc script to reject mail not explicitly addressed to the recipient:
#!/bin/sh
formail -x to -x cc -x resent-to -x resent-cc
| fgrep "$1" > /dev/null
&& exit 0
echo "<$1>.. address does not accept blind carbon copies"
exit 100
To invoke this script, passing it the recipient address as an argument, you would need to put the following in your Mail Avenger rcpt
script:
bodytest reject_bcc `escape "$RECIPIENT"`
SEE ALSO
avenger(1),
The Mail Avenger home page: <http://www.mailavenger.org/>.
BUGS
escape is designed for the Bourne shell, which is what Mail Avenger scripts use. escape might or might not work with other shells.
AUTHOR
David Mazieres
Mail Avenger 0.8.3 2012-04-05 escape(1)