Visit Our UNIX and Linux User Community


Files are not coming in attachement by any command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Files are not coming in attachement by any command
# 1  
Old 09-15-2009
Network Files are not coming in attachement by any command

Hi All

I want to send a file thru a mail with an attachment.

i tried using uuencode , but it says

"bash: uuencode: command not found"

and the same i am getting for mutt as well:

"bash: mutt: command not found"

Tried searching in all the forums but could not find anything helping me.

do we have any other command as well to send a mail with attachment?

Your help is very much appreciated.

Thank youSmilie
# 2  
Old 09-15-2009
Quote:
Originally Posted by Prateek007
Hi All

I want to send a file through mail with an attachment.

I tried using uuencode, but it says

"bash: uuencode: command not found"
Well, that means you don't have it. Would it be possible for you to install it?
Quote:
And I am getting the same for mutt as well:

"bash: mutt: command not found"
Well, you don't have that either. You'd have to install it. I think mutt's a full-out email client though, rather than something to use with sendmail.

There's probably lots and lots of them, but if you don't have uuencode, you're not likely to have anything else either. this might tell you how to make do with openssl's base64 encoder, by assembling your own mime headers.
# 3  
Old 09-15-2009
Which Linux distro are you using? (e.g. Ubuntu, Fedora, PCLinuxOS, etc.)

You need to install whatever you want to use. If you are using Fedora, you can install mutt with this command.
Either use su to become root or preceed the command with sudo if that's set up:
Code:
yum install mutt

On Ubuntu, PCLinuxOS and some others use
Code:
apt-get install mutt

Other distros use other commands.

Using uuencode directly seems a bit laborious these days, but when I executed the command yum search uuencode, Fedora returned uulib-devel. So maybe it's in that package.

Previous Thread | Next Thread
Test Your Knowledge in Computers #593
Difficulty: Medium
C is a statically typed language so variables must be declared along with their types before using them.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

UNIX attachement email

I am having an issue sending a text file as an attachment. It is an oracle sql report generated as text. The file is formatted fine. However, when it is emailed and opened in notepad it is missing new lines and not not formatted properly. It is on solaris 10. Here is my code: #! /bin/ksh... (1 Reply)
Discussion started by: mrn6430
1 Replies

2. UNIX for Dummies Questions & Answers

Top Command Output is not coming via Cronjob

Dear All, I created a small script to get the CPU, GIS usage etc automatically. However when i run this script manually its working , but when i run through cronjob i am not getting any output. Can anyone please help me on this. I am using SuseLinux. Thank you in advance. #!/bin/sh {... (2 Replies)
Discussion started by: Nitin Kapoor
2 Replies

3. Shell Programming and Scripting

Telnet errors coming on screen while using snarf command.

Hi Team, I am using one script, It is working fine, the problem is it gives unwanted telnet errors when I am using it. I just want to remove these unwanted errors/info from my screen. bash-3.00$ cat raza_site_temp #!/usr/bin/bash #rj835b IFS="|" REGEX="$*" echo snarf2 -c "show... (1 Reply)
Discussion started by: Raza Ali
1 Replies

4. UNIX Desktop Questions & Answers

Move the files which is coming after grepping

Dear Friends, I am trying to move the files which are listing after greaping command. see the details below 1. When i am running the grep command $ grep -il 'Bufman' *.* fatal.log fatal_info.log it has listed some files now i want to move this files to any another locate so i am... (13 Replies)
Discussion started by: ripudaman.singh
13 Replies

5. Shell Programming and Scripting

How to remove messages coming from UNZIP command?

Hello, I am writting a script, which gets folder and search for *.zip files in to it. If .zip files are available, then UNZIP all files into that folder only. Here is my code, for file in "$INPUT_FILE_FOLDER/"*.zip do unzip -d "$INPUT_FILE_FOLDER/" -oqq $file done If .zip files are... (2 Replies)
Discussion started by: Poonamol
2 Replies

6. Shell Programming and Scripting

sending attachement in mail

Hi , I am using the below code to send mail through a script which run as a cron job. msgdate=`date +"%a, %e %Y %T %z"` daemail=$(cat <<! From: $from To: $emailtarget Subject: $subject Mime-Version: 1.0 Content-Type: multipart/mixed; Content-Disposition: inline $priority $CONTENT !)... (2 Replies)
Discussion started by: ahamed
2 Replies

7. Shell Programming and Scripting

attachement through mail command

Can't attach text files to 'mail' command. I dont have mutt or mailx to use on my server. so i have to use mail command any help would be great. Regards, Kiran (1 Reply)
Discussion started by: dddkiran
1 Replies

8. Shell Programming and Scripting

Sending attachement using mailx

Hi I tried reading docs from this forum and googled it...but i couldnt get the answer for attaching a document in mail. I need it to be the actual attachement not adding the content of the file to the body of the mail.. i used uuencode ...to encode the file but it is coming as a junk... (4 Replies)
Discussion started by: aemunathan
4 Replies

9. UNIX for Advanced & Expert Users

How to read mail attachement

I want to read attachements sent to unix mail id and save the attachement in folder. I may receive the mails from different mail clients(outlook, lotus ..etc). Attachements are in CSV(comma saperate) format. Let me know the shell script code for this. Regards, Venkat (1 Reply)
Discussion started by: svenkatareddy
1 Replies

10. Shell Programming and Scripting

query about Attachement in mail

Hi All, I have general query that ...in my script i used uuencode option like below. cd /location (cat test.txt uuencode test.csv test.csv ) | mail -s "test mail" "mail_id" but whenever i run the above command its giving error like below ./testscript.sh: uuencode not found: ... (1 Reply)
Discussion started by: Shahul
1 Replies

Featured Tech Videos