Operating System - HP-UX
1838687 Members
5221 Online
110128 Solutions
New Discussion

crontab and checking applications

 
SOLVED
Go to solution
khilari
Regular Advisor

crontab and checking applications

Hi people, i wanted to know as to how do you configure crontab initially for a new user, and also how do u check what applications are running on the system!!!
3 REPLIES 3
Jeff_Traigle
Honored Contributor

Re: crontab and checking applications

Depends how you have cron authorization configured. If you have a /var/adm/cron/cron.allow file, you need to add the enw username to it before it will be allowed to run cron jobs. If you don't have one, but have a /var/adm/cron/cron.deny file, then the new username will be able to run cron jobs unless you add it to the cron.deny file. If neither file exists, only root can run cron jobs and your will need to create /var/adm/cron/cron.allow with the new username as an entry.

(I think I remembered all that correctly. :) )
--
Jeff Traigle
DCE
Honored Contributor
Solution

Re: crontab and checking applications



ps -ef will show you all the processes on the system

cd /var/spool/cron/crontabs
create a file named for the user with the appropriate entries (you can model it after one of the other files in the directory.

log on as the user and run crontab /var/spool/cron/crontabs/new_cron_tab_file to activate the new file
James R. Ferguson
Acclaimed Contributor

Re: crontab and checking applications

Hi:

To configure the ability for a user to use cron, add the users login name to 'var/adm/cron/cron.allow'. See the 'crontab(1)' manpages for more information regarding this.

To see what processes are running on a system, use 'ps' or 'top' or 'glance'.

'ps' is easily scripted and offers a wide ability to select processes by various criteria and the amount of information returned about them.

# ps -ef

...shows all processes

# ps -fu

...limits the process information returned to processes belonging to .

Regards!

...JRF...