1752552 Members
4366 Online
108788 Solutions
New Discussion юеВ

Re: mail command

 
SOLVED
Go to solution
whiteknight
Honored Contributor

Re: mail command


Viseshu,

Same document as Ashu given. Please link your ITRC system handle, so that you can access to our knowledge base.

WL
Problem never ends, you must know how to fix it
Dennis Handly
Acclaimed Contributor

Re: mail command

>giving ux2dos command is resulting in the same error.

My previous reply had the solution.
Basically, pipe/stdin is ignored on most commands if you specify a file on the command line.
whiteknight
Honored Contributor

Re: mail command


Viseshu,

Same document as Ashu given. Please link your ITRC system handle, so that you can access to our knowledge base.

WK
Problem never ends, you must know how to fix it
viseshu
Frequent Advisor

Re: mail command

Thank you Anshu/Dennis for the help.
Using ux2dos abc.txt | uuencode abc.txt|mail id@domain.com, work is done but i can see one square in last line of the txt document. Can this square be suppressed. :(
Dennis Handly
Acclaimed Contributor

Re: mail command

>I can see one square in last line of the txt document. Can this square be suppressed?

ux2dos(1) adds a control-Z to the end for DOS. But you are using windows and it no longer likes that.

I suppose you can use tr(1) to remove it:
ux2dos abc.txt | tr -d '\032' | uuencode abc.txt | mail id@domain.com
Anshumali
Esteemed Contributor

Re: mail command

translatin/ deleting the character should be ok . It works fine.
Still, i prefer to use wordpad. ;)
Thanks Dennins for wordpad enlightment!!

Anshu
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
viseshu
Frequent Advisor

Re: mail command

Thanks for the help Dennis/Anshu
Its done!!!!