The UNIX and Linux Forums  

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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Send mail attachments and have a mail body shibajighosh AIX 1 04-18-2008 10:54 AM
To send a mail with a file attached samudha UNIX for Dummies Questions & Answers 5 07-16-2007 12:02 AM
mail problems - how to send mail on solaris amon SUN Solaris 10 04-06-2006 06:31 AM
I am not able to send mail form unix to other mail accounts. chinnigd UNIX for Dummies Questions & Answers 1 04-06-2006 05:31 AM
can not send mail from unix server to company/yahoo mail b5fnpct UNIX for Dummies Questions & Answers 5 11-22-2002 06:24 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-28-2008
Registered User
 

Join Date: Jan 2008
Posts: 1
Cool Pull E-mail address from file, send e-mail

Hello,

I am new to perl and need to create a script that will read a file and pull a name from the file and send e-mail.

How can I use the following awk statement in a perl script?

grep UNIXadmins /root/mail.conf | awk '{ print $2}'

and use the output to send a e-mail.

Any help would be great

Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 01-28-2008
dj -------
 

Join Date: Feb 2007
Location: Cochin/Bangalore, India
Posts: 439
use the system command.

system("command")
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0