Solved

Regarding cron and swlist

Posted on 2006-11-01
3
324 Views
Last Modified: 2013-12-06
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
Comment
Question by:pigeon5566
3 Comments
 
LVL 6

Accepted Solution

by:
JJSmith earned 25 total points
ID: 17942827

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question