![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
ok thanks!
|
|||
| Google The UNIX and Linux Forums |