Sponsored Content
Top Forums Shell Programming and Scripting Files are not coming in attachement by any command Post 302353559 by KenJackson on Tuesday 15th of September 2009 03:29:15 PM
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.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
RBASH(1)						      General Commands Manual							  RBASH(1)

NAME
rbash - restricted bash, see bash(1) RESTRICTED SHELL
If bash is started with the name rbash, or the -r option is supplied at invocation, the shell becomes restricted. A restricted shell is used to set up an environment more controlled than the standard shell. It behaves identically to bash with the exception that the follow- ing are disallowed or not performed: o changing directories with cd o setting or unsetting the values of SHELL, PATH, ENV, or BASH_ENV o specifying command names containing / o specifying a file name containing a / as an argument to the . builtin command o specifying a filename containing a slash as an argument to the -p option to the hash builtin command o importing function definitions from the shell environment at startup o parsing the value of SHELLOPTS from the shell environment at startup o redirecting output using the >, >|, <>, >&, &>, and >> redirection operators o using the exec builtin command to replace the shell with another command o adding or deleting builtin commands with the -f and -d options to the enable builtin command o using the enable builtin command to enable disabled shell builtins o specifying the -p option to the command builtin command o turning off restricted mode with set +r or set +o restricted. These restrictions are enforced after any startup files are read. When a command that is found to be a shell script is executed, rbash turns off any restrictions in the shell spawned to execute the script. SEE ALSO
bash(1) GNU Bash-4.0 2004 Apr 20 RBASH(1)
All times are GMT -4. The time now is 06:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy