The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sunsolaris shell script runs only as super user gjithin SUN Solaris 4 05-09-2008 05:47 AM
How to use own account env variables to cron user Tlg13team HP-UX 3 01-28-2008 06:38 AM
SFTP errorcode 1 when run on cron but runs manually Heidi.Ebbs SUN Solaris 2 08-08-2007 09:16 AM
Old cron entry still runs, but shouldnt xadamz23 UNIX for Advanced & Expert Users 3 10-11-2005 02:11 PM
cron user finster UNIX for Dummies Questions & Answers 12 11-07-2004 09:24 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 05-25-2002
Registered User
 

Join Date: Feb 2002
Posts: 28
In crontab, you must specify the complete path to the file you wish to run, or a PATH variable needs to be set -mk
__________________
If it aint broke,
Fix it till it is.
Forum Sponsor
  #9  
Old 05-25-2002
Registered User
 

Join Date: Aug 2001
Location: Raleigh, nC
Posts: 28
Does .forward send all...

Does .forward send all the mail if you put it in /etc/sendmail. I thought there was something I could put in the script itself (that is to be run by cron) that would send only THAT particular output, not all of it. Maybe I was wrong.
  #10  
Old 05-27-2002
Kelam_Magnus's Avatar
Registered User
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
No, You would either use a .forward in that user's home directory to send all mail to someone else. OR use the /etc/aliases to setup a filter to send some of the mail from a user to another user or root user.

For /etc/aliases to work, you would setup a user with an alias in this file.

user1 :/path/to/script

Then on the same line you would put a script path to evaluate the mail and use that script to forward certain mail on to another user.

You will also have to put the script in a certain directory for it to work as well on Some systems like my company systems.
__________________
My brain is your brain
  #11  
Old 06-02-2002
Registered User
 

Join Date: Aug 2001
Location: Raleigh, nC
Posts: 28
ok thanks!
Google The UNIX and Linux Forums
Closed Thread

Tags
sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:59 PM.


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