10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
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
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
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
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
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
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
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
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
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