Reload user crontab file

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Reload user crontab file
# 1  
Old 07-31-2009
Reload user crontab file

Hi Guys,

Our user crontab files are located at /var/spool/cron/crontabs.
I have to make some modifications to it.
I have all the crontab entries in a file called 'crontab.actual'. I made changes to this file and now I want to reload these changes from the crontab.actual file to my crontab file at /var/spool/cron/crontabs.

Could any of you suggest me how to reload the crontab file.

# 2  
Old 07-31-2009
I would make a backup of the original crontab file for each user, then overwrite it with the new file.
To let cron(d) recognize the change, you can use maybe on Linux something like
$> /etc/init.d/cron
Usage: /etc/init.d/cron {start|stop|status|try-restart|restart|force-reload|reload|probe}

If you happen to be on AIX, just kill the cron demon since it will be restartet be the respawn inittab entry.
No idea which Unix/Linux you are using.
# 3  
Old 07-31-2009
Would this not do?:
crontab crontab.actual

# 4  
Old 07-31-2009
Originally Posted by scottn
Would this not do?:
crontab crontab.actual

Do I also need to give username?
# 5  
Old 07-31-2009

Sorry, I thought it was for the same user.

You can use:

su user -c "crontab file"

Last edited by Scott; 07-31-2009 at 12:09 PM..
# 6  
Old 07-31-2009
We are using solaris.

and our group name is "ems". The entry in the /var/spool/cron/crontabs is

-rw------- 1 root ems 4987 Jun 22 12:00 ems

Now, I have to modify this crontab file ems.

I have a backup of this file, I took a copy of the backup file and the file is crontab.actual. I made chnages to this file and now want to reload the entire crontab.actual file.

please suggest.
# 7  
Old 07-31-2009
Does my previous suggestion not work? (I updated it perhaps after you first read it, but before you replied).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

[ksh] how to reload history file without entering a command

I'm basically looking for the ksh equivalent of bash's PROMPT_COMMAND="history -r", where simply redrawing the command prompt in a terminal will cause ksh to reload the history file. At the risk of sounding incredibly lazy (in which case I would be guilty as charged), I've noticed that if I have... (13 Replies)
Discussion started by: DevuanFan
13 Replies

2. UNIX for Dummies Questions & Answers

Command to reload a zone

I just created a CNAME and i was told a zone needs to be reloaded after creating a CNAME. What is the command to reload a zone after the CNAME has been created? Thanks in advance (1 Reply)
Discussion started by: German Shepherd
1 Replies

3. Red Hat

reload vsftp service

Is there a easy-to-use graphical tool (or a simple and direct set of command line instructions) that will help me reload services on Red Hat Enterprise Linux ES version 3? VSFTPD keeps dying on my business server - seemingly at random, with message "dead but subsys locked" VSFTPD starts and... (2 Replies)
Discussion started by: mdarby77
2 Replies

4. UNIX for Dummies Questions & Answers

Editing crontab of non-root user from file

Hi All, Ref: "build crontab from a text file" in same forum. (I am not allowed to post URL's in the first post) We are reorganizing our UNIX Crontab file by first making changes in a word pad text file. The intent is to then copy it back to Crontab. Will this work? Copy and Paste does not... (6 Replies)
Discussion started by: nivedhitha
6 Replies

5. Solaris

cannot add PATH to user crontab file

hi All, here is the problem: I'm not able to specify a PATH inside the user crontab file (/var/spool/cron/crontabs). The only syntax it accepts is the usual "* * * * * file" I'm not able to add PATH, or HOME, or MAILTO, or anything else. when I try to save the crontab, I have the error: ... (1 Reply)
Discussion started by: joe_x
1 Replies

6. UNIX Desktop Questions & Answers

Automatic reload of Thunar

I am using Thunar on FreeBSD 7.1 and XFCE. I would like the thunar window to reload automatically when a file has been added or deleted. Currently I press Ctrl-R, but perhaps a setting that I dont know of will do this automatically? (0 Replies)
Discussion started by: figaro
0 Replies

7. UNIX for Dummies Questions & Answers

how to reload the shell session

Hi there, I got to find out that if I make changes in the prompt or command aliases from .bashrc, I could apply those changes immediately with the command: source ~/.bashrc There's another situation when I'd like to apply changes without loging out and in again: If I add someone to a group of... (2 Replies)
Discussion started by: chebarbudo
2 Replies

8. UNIX for Dummies Questions & Answers

new crontab for new user

Hi All, I am user of partcular user of alinux machine. I want have some cronjobs to be done by machine. But i don't have crontab file for me. However i do have crontab installed as /usr/bin/crontab. Could anyone please suggest how to creat a new cron file for a user? Any help will be highly... (3 Replies)
Discussion started by: bisla.yogender
3 Replies

9. UNIX for Dummies Questions & Answers

Reload Servlet in Tomcat

does anyone know how to reload servlet in tomcat? when do I actually reload it? when I modify any file in this server? (1 Reply)
Discussion started by: hamboy
1 Replies

10. Linux

reload kernal without reboot

Hello! Does anyone know howto reload your kernal without rebooting the machine? Ive updated the "/etc/security/limits.conf " file and need to make this active without rebooting the machine. this is Red Hat Advanced Server 2.1AS Regards... dOzY (3 Replies)
Discussion started by: dozy
3 Replies
Login or Register to Ask a Question