[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 358
  • Last Modified:

Regarding cron and swlist

1.  I had created two new user in my HP-UNIX 11.0 system.  I did a crontab -l in these users but it gave permissions problem. So i added the new users to /usr/lib/crontab.allow . When i do a crontab -l i am getting "can't open your crontab file" . How do i set crontab for the new users.

2. How do i a start/stop the cron daemon. Is there any commands to do it?

3.  When i do a swlist alone i am getting some output. From which directory it takes and list me the output. To which directory the depot is mapped in HP-UX systems. How do i find it?
swlist

0
pigeon5566
Asked:
pigeon5566
1 Solution
 
JJSmithCommented:

1) Use crontab -e to initially create your contab file.

2) The cron daemon is a high level system process that is started when you boot the system and stop when you shutdown. Root is allowed to stop/start by hand by:

     /sbin/init.d/cron  stop

      or

     /sbin/init.d/cron  start

3) swlist will by default list software installed on the local host. If you want to list software in a depot then use the -d flag;

    swlist -d @ /somedir/some.depot


    try a man swlist

    or run it interactively - swlist -i

Cheers
JJ
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now