When I am trying to send a text file through Unix,I get a weird symbol in the .txt file. The symbol is ? in a box (square)....which is making the file unloadable. Please help me with the solution.
Thanks in advance
Gopi
Last edited by methyl; 06-07-2012 at 05:24 PM..
Reason: O/P spelling
Please tell us something about your computer and the data:
What Operating System and version are you using?
What Shell are you running:
Assuming that the problem is in every record, please post the output from this command which is designed to make unprintable characters visible:
99% of the time funny characters come from Microsoft platforms. Is Microsoft involved in this problem?
At a technical level, please detail the process trying to send a text file through Unix mentioning any database engines or other relevant detail.
Moderator's Comments:
Moving post to Shell Scripting forum because O/P has not mentioned an Application and this issue needs a wider audience
Last edited by methyl; 06-07-2012 at 05:25 PM..
Reason: my spellling!
I am trying to find a code that can help me mail to a list of recipients which are in a text file.
Sample code
$cat recipient.txt
me@test.com
me1@test.com
me2@test.com
I want a mailx step that can read contents of recipient.txt and mail to all the users.
I don't want to use mails... (1 Reply)
Hi Team,
I want to use "Courier New" fonts while sending emails using mailx command from solaris command prompt.
Because my SQL output is not printing in correct format in the email.
Please assist. Let me know for any details.
Thanks, (1 Reply)
Hello,
i encountered this in perl but it might be command line related as well:
i am sending text as an argument to echo command on remote computer.
if the text has alphanumeric characters only, say 'hello world' all is well. if however text has metacharachters, e.g. 'hello | world' or even... (2 Replies)
Hello,
I was using a shell script for sending contents of a text file(email.report) to different users.
I was using the below command in my script to send email...
cat email.report | /usr/bin/mailx -s $REQ_SUBJECT -h 5 abc@xyz.com
It was working fine all these days but now all of a sudden it... (18 Replies)
i need help with my script....
i am suppose to grab files within a certain date range
now i have done that already using the touch and find command (found them in other threads)
touch -d "$date_start" ./tmp1
touch -d "$date_end" ./tmp2
find "$data_location" -maxdepth 1 -newer ./tmp1 !... (6 Replies)
I'm new to scripting and have been tasked with creating a script that will read a mailbox, such as /var/mail/user1, scan it for new messages, then send those new messages to another file.
It also has to be looped to run almost continuously.
Any help would be greatly appreciated (1 Reply)
Hello,
I need to send with text in the body and 2 files as attachments using sendmail command.
i can send only one at a time either attachment or text in body of email.
Can any one please help me how to get that?
I will be great for any help.
Thanks,
Sparan (1 Reply)
Hi,
I have used the following command to send a text file "archiver.log" as attachment.
(cat mail.log; uuencode archiver.log archiver.log; ) | mailx -s "Failure" asd@a.com :
But in the mail i am not getting new lines in the text file.New Lines are getting replaced with some weird... (2 Replies)