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.
I have tested something similar on my FC4 machine and works without problems.
I created a file 'test' with this content:
* * * * * echo "yes"|mail robert
I executed 'crontab test' and the mails started coming in.
So either one of your scripts aren't working (x-bit not set?) or they don't have anything to do... please create some similar test script to identify if it is cron that is not working . . . Then move on to the next step (having YOUR scripts to be executed). For instance, let your own script explicitly send an e-mail to you that it is being executed, on the first line of the script.
I hope this helps a bit ?
Oh, and PS, your first line is not correct, it should read '#!/bin/bash' instead of '#/bin/bash' But I guess that's just a minor detail, as your machine will probably pick bash as the interpreter anyway.
The script runs fine, I'm not too worried about that. I'm pretty sure the script is in the right spot. Is there a way to check exactly what my absolute path is from the directory with the script? I simply used $HOME and then added my directories on.
"I simply used $HOME and then added my directories on."
cron jobs do not run as either root or user. $HOME for cron is probably null. For sure it is not /root or /home/mikie. So your problem is probably that the absolute path to the command is correct when testing but wrong when running as cron.