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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
"crontab -e" if logged in as a given user will create/edit the crontab for that user. It is a vi session and you can add your entries there.
If you're the root user you can use above to modify root's crontab or "crontab -e -u <user>" to specify the user crontab you want to create/edit.
You can type "man 5 crontab" to find out the format of records to create.
Remember any script you run in crontab will need to be self contained with correct environment variables (especially PATH) as cron jobs do NOT login as the user but rather in a minimal environment. Most of the environment for users is created by logins and it won't be there in a cron job unless included in the script.
"crontab -e" if logged in as a given user will create/edit the crontab for that user. It is a vi session and you can add your entries there.
If you're the root user you can use above to modify root's crontab or "crontab -e -u <user>" to specify the user crontab you want to create/edit.
You can type "man 5 crontab" to find out the format of records to create.
Remember any script you run in crontab will need to be self contained with correct environment variables (especially PATH) as cron jobs do NOT login as the user but rather in a minimal environment. Most of the environment for users is created by logins and it won't be there in a cron job unless included in the script.
But he did "crontab -u orasid", so he's already editing orasid's crontab. I just tried putting my own username in my own crontab, and it threw an error:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.