Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
You can check the mail of the user (that one accessed by the mail command). Usually logs are sent there, unless you specify a different user or address with the MAILTO variable (or assign an empty string to disable logs).
Edit: you can try also to look at /var/log/maillog (if it exists). Once I had a similar problem with sendmail and the error message from the mail server was
Domain of sender address user@host does not exist
I solved by adding option -f to the sendmail command.
Last edited by colucix; 12-04-2007 at 05:24 AM.
Reason: adding more info
after the cron is ran, /tmp/my_alert_test.log is not created
Originally Posted by yusufs
Cron is working fine..
You are not giving me consistent information. How did you determine that cron is working when the test I asked you do to to see if it is working showed that it is not?
Originally Posted by yusufs
where i can see the cronjob logs of the user
It depends on which cron daemon your system is using, how it is configured and, and how syslog is configured. This is distro specific, so I cannot say for your machine with certainty. It is not even certain that cron jobs are logged on a job-by-job basis. This is the reason I asked you to do the test - to see if cron is running jobs for you - this method doesn't require any knowledge of your system's cron daemon configuration.
Last edited by matthewg42; 12-04-2007 at 05:44 AM.
Reason: oop, double negative