The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
passing variable from bash to perl from bash script arsidh Shell Programming and Scripting 10 06-04-2008 12:25 PM
bash script pooppp Shell Programming and Scripting 6 05-29-2008 02:46 AM
Why generate "ash and bash" different output for same bash script? s. murat Shell Programming and Scripting 0 05-26-2008 07:19 AM
please help with a bash script milagros Shell Programming and Scripting 1 05-13-2007 09:43 PM
Help with Bash Script carriehoff Linux 0 07-12-2006 05:00 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-19-2004
borncrazy borncrazy is offline
Registered User
  
 

Join Date: Apr 2004
Posts: 35
Question Mail using bash script

Hi,

I am trying to write a script which emails the status of the job to the client. I am using bash script. I tried using mailx and the shell throws an error that 'command not found'. is mailx not supported in bash. Alternatively, is there any command that i can use for sending email in bash?


Thanks in adv
  #2 (permalink)  
Old 07-19-2004
jjcool jjcool is offline
Registered User
  
 

Join Date: Jul 2004
Posts: 2
Hi,

Which OS are you using?
Try adding the complete path to the mail command you are using.
On a standard Solaris installation the path to mailx is /usr/bin/mailx.

What are you trying to do with the script?
Should it send you a text message or send an attachment?

-Joe
  #3 (permalink)  
Old 07-19-2004
borncrazy borncrazy is offline
Registered User
  
 

Join Date: Apr 2004
Posts: 35
Hi,

I am using Linux.

I just need to send a text message...Nothing else...
  #4 (permalink)  
Old 07-19-2004
jjcool jjcool is offline
Registered User
  
 

Join Date: Jul 2004
Posts: 2
Sorry!

Linux doesn't have mailx as a standard package.
You'll have to use mail.
Did you say you are writing the script in sh? If so, you'll be happy to know that sh is a link to bash!
All of your sh scripts should work as expected though.

-Joe
  #5 (permalink)  
Old 07-19-2004
borncrazy borncrazy is offline
Registered User
  
 

Join Date: Apr 2004
Posts: 35
Thumbs up

Hi,

I got this working.....

There was a problem at the server end and the mails were not getting delivered..I thought i was doing a mistake.Checked with the admin team and got it resolved.

Thanks for the help
  #6 (permalink)  
Old 07-21-2004
borncrazy borncrazy is offline
Registered User
  
 

Join Date: Apr 2004
Posts: 35
Hi,

Can i send an attachement through mail synatx... I tried to search the man pages but could not find any option...

Is there any alternative to fro sending an email with a text attachment or inline text thru email using bash


Thanks in adv
Closed Thread

Bookmarks

Tags
linux, mailx, mailx attachment, solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0