Solved

Regarding cron and swlist

Posted on 2006-11-01
3
320 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now