10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello, I am new to the Unix thing, and I am having trouble sending attachments via shell client putty through mailx.
The command I use is
$ mailx -s "Subject" user@blah.com < attachment.txt
but everytime I do that it would say Cannot open attachment.txt
I have the file save to my computer... (5 Replies)
Discussion started by: mrobin20
5 Replies
2. Shell Programming and Scripting
Hello! I am writing a KornShell script that (in addition to other things) sends a file from a Unix directory to a SharePoint directory. However when executing the script there is no sign of the file on the SharePoint.
I have tested the script using my personal email as the destination and the... (3 Replies)
Discussion started by: mattkoz
3 Replies
3. Solaris
Hi,
I need help with mailx. When I run the below mailx command, it works fine because the exit code is fine, and the message is sent to /usr/mail/<id>
echo "This is a test message" | mailx -s "Test" <my email address>
My question is, how do I get it to reach my email address (on outlook... (2 Replies)
Discussion started by: ChicagoBlues
2 Replies
4. Shell Programming and Scripting
This is my first time writing a script and Im having some trouble,
Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage
I tried grep
Obviosly that hasnt worked,
Any... (8 Replies)
Discussion started by: jay02
8 Replies
5. Shell Programming and Scripting
Hi,
I am trying to send html email using mailx like follow on sh shell (Bourne) on HP-UX:
mailx -s "Test HTML output in outlook
MIME-Version: 1.0
Content-Type: text/html" receiver@host.com < file.txt
Content of file.txt are as follows:
<html>
<h2>An important link to look at!</h2>... (3 Replies)
Discussion started by: manubatham20
3 Replies
6. Shell Programming and Scripting
Hi all,
I need to send a variable value in the script through mailx. Please find the script below but its not working.
agents.sh:
agents=`grep "Tot Agents " snapshot.dbm`
if (( $? == 0 )); then
mailx abc@gmail.com $agents
fi (3 Replies)
Discussion started by: db2cap
3 Replies
7. AIX
How can I check to see how/why my mailx program is not sending?
/var has enough room.
-Thanks
---------- Post updated at 08:48 AM ---------- Previous update was at 08:35 AM ----------
I tested the mailx to send with this command:
echo "This is going to be body of the mail" |mailx... (1 Reply)
Discussion started by: tfort73
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. Shell Programming and Scripting
I spent some time working this out, with a little help from various forums, and thought the community would like to know :
Here is how you can send an email from a single Unix command line :
/usr/bin/echo "Email text\nNew line\nAnother new line" >x | uuencode sourcefile.txt sourcefile.txt |... (3 Replies)
Discussion started by: haryadoon
3 Replies
10. UNIX for Advanced & Expert Users
Hi
A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as
" usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies