LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-03-2017, 03:51 AM   #1
ironfrogclark01
LQ Newbie
 
Registered: Nov 2016
Posts: 6

Rep: Reputation: Disabled
Talking CRON directories.


Hi everyone,

Good day, Im trying to modify the directories that holds the cron files created by users/packge, but I cant find which config I should modify, is it really feasible? if yes kindly provide your inputs.

for example I want to move the /var/spool/cron/crontabs/USER-cron-entry to /etc/cron.available, on what config should I look? is it possible to modify the directories that holds cron files created by users?

Thanks
IRONfrogClark1
 
Old 03-03-2017, 08:05 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
You could modify source files for all commands that touch cron files then recompile which would be quite an undertaking. You'd also have to remember to re-edit every time upstream commands were updated and applied.

Were it me I'd simply make a symbolic link instead.

Alternatively you could use the remount option of mount command:
Quote:
Since Linux 2.4.0 it is possible to remount part of the file hierarchy
somewhere else. The call is
mount --bind olddir newdir
After this call the same contents is accessible in two places. One can
also remount a single file (on a single file)
 
Old 03-06-2017, 01:25 AM   #3
ironfrogclark01
LQ Newbie
 
Registered: Nov 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
thank you for this information MensaWater
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron Job help to move directories older than 90 days ndenial Linux - Newbie 15 12-11-2015 04:57 PM
Strange Cron directories: /var/spool/cron/cron.GfqqGO Woodsman Slackware 4 05-11-2011 02:37 PM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 08:16 AM
Deleting directories from a cron Jaysworld Linux - Software 2 03-14-2006 07:33 AM
Cron job to sync two directories Harimwakairi Programming 3 01-05-2006 11:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration