FedoraThis forum is for the discussion of the Fedora Project.
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.
I AM A NEWBIE AND I AM TRYING TO RUN USER-DEFINED CRONTABS ON FEDORA 2 FOR THE PURPOSE OF SYSTEM CLEANUPS. ONE THAT I AM TRYING TO RUN IS STORED UNDER /VAR/SPOOL/CRON. HOW DO I DEFINE AND EXPORT THE 'EDITOR' ENVIRONMENT VARIABLE SO I CAN EDIT MY SCHEDULES. I HAVE NOTICED THAT WITHIN etc/profile, THE 'EDITOR' VARIABLE IS NOT DEFINED. IF ANYONE HAS THE CODE FOR THAT I WOULD GREATLY APPRECIATE IT.
If this is going to be an automated task I would recommend that you take advantage of cron.daily, cron.hourly etc.... You will also have to read that man pages for crontab, because it will require different things based on what you want to do. If you will let us know exactly what you need cron to do then I can help more.
Thanks for your replies Digiot and MrJoshua. Digiot could you please explain the nature of the first issue, regarding conversion from upper to lower case. Where does that factor in? Again for me to export the editor, would i not have to extract it first? If anyone has code availabale that sets the EDITOR variable, I would greatly appreciate it. Digiot I am setting the editor specifically for executing crontab -e to edit user-defined schedules. The scripts are ratyher easy MrJoshua, just simple file removals. It's the configuration issues I am having problems with.
The first was a bad joke about your caps-lock post.
As far as the rest, I guess you've gotten it straightened out by now. I hope so, because I'm confused. If you want to edit your crontab with a specific editor, you export the variable in your shell's init scripts. There's no 'code' beyond what I posted above and there's no 'extracting' unless you're trying to compile the editor and not just assign it to a variable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.