Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

where can I find the file from crontab -e ?

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
cc
Posts: 820
Joined: 2005-06-08 19:14

where can I find the file from crontab -e ?

#1 Post by cc »

hi

If I create a new cron job on Debian Sarge with:

#crontab -e

I cannot see it in /etc/crontab or where can I find the file with this new entry ?

greetings
cc

lacek
Posts: 764
Joined: 2004-03-11 18:49
Location: Budapest, Hungary
Contact:

#2 Post by lacek »

Per-user crontab files are in the /var/spool/cron/crontabs directory.

cc
Posts: 820
Joined: 2005-06-08 19:14

#3 Post by cc »

thanks,

but if I create a new cron job as root, this will be processed
any time, for example after restart without any loggins ?
or the machine must be login as root user to push this cron job ?

in other case howto create a cron job without users,
I mean this cron job will be processed with any user ?

greetings
cc

lacek
Posts: 764
Joined: 2004-03-11 18:49
Location: Budapest, Hungary
Contact:

#4 Post by lacek »

If you create a cron job, you needn't to be logged in, cron will process it anyway.
You can't create a cron job without a user specification, not even in the 'main' crontab (/etc/crontab). There must be a user specified who will 'own' this cron job. This user can be anyone, but in the user crontab files no user could be specified. User crontab files are run in the name of their creator.

cc
Posts: 820
Joined: 2005-06-08 19:14

#5 Post by cc »

thanks !

Post Reply