Running Crontab at login/logout

May 17, 2005 at 07:57:42
Specs: Mac os X, 2ghz dual

hi all! i was wondering if anyone knew how to get set
crontabs to run at login/logout?


See More: Running Crontab at login/logout

Report •

May 17, 2005 at 08:32:25

1. crontab is used to schedule jobs that are executed automatically by cron on a regular basis. It's time-based, not event-based.

2. For login, use /etc/profile, $HOME/.profile, ... depending on the login shell in /etc/passwd.

3. For logout, you may try to create a customed shell(s) to include atexit:

#include <stdlib.h>
int atexit(void (*func)(void));

Luke Chi

Report •
Related Solutions

Ask Question