Quick Solaris 9 question

I am following these instructions for syslog and log rotation but I am stuck what to put next after the > prompt.  See at the bottom.

The following command example will configure the rotation of the /var/log/pix.log file:

# logadm pixlog –z 1 /var/log/pix.log \
    -a 'kill -HUP `cat /var/run/syslog-ng.pid`' \
    -t '/var/log/OLDLOGS/$basename.$

The log file is configured to rotate based upon the default size and time restrictions (>1 byte and older than 1 week), all but the last rotated log will be compressed using gzip, the old log files will rotate to the directory /var/log/OLDLOGS and the command “kill –HUP `cat /var/run/syslog-ng.pid`” will be run after log file has been rotated and the new log file created.
 

MY SOLARIS TERM
# logadm ciscolog -z 1 /var/log/cisco.log \
> -a 'kill -HUP `cat /var/run/syslog-ng.pid`' \
> -t '/var/log/OLDLOGS/$basename.$
>
rick_me27Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GugroCommented:
Hi,

you are missing the last '

MY SOLARIS TERM
# logadm ciscolog -z 1 /var/log/cisco.log \
> -a 'kill -HUP `cat /var/run/syslog-ng.pid`' \
> -t '/var/log/OLDLOGS/$basename.$'                                   <<<<<<<<<<<<< Add ' at end of line
>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rick_me27Author Commented:
you were right.  It did run but I got this output.  You definitley get the points.  Do you have any idea what this means.  I'm so new to Unix I'm not sure.
and I'm trying to get Logsentry running on this box.

# logadm pixlog .z 1 /var/log/pix.log \
> -a 'kill -HUP `cat /var/run/syslog-ng.pid`' \
> -t '/var/log/OLDLOGS/$basename.$'
logadm: Warning: pixlog: No such file or directory
logadm: Warning: .z: No such file or directory
logadm: Warning: 1: No such file or directory
#
0
TintinCommented:
Your syntax is incorrect.  You are specifying to rotate the files:

pixlog and .z

which obviously don't exist.

You should look at the sample entries in /etc/logadm.conf to see the correct syntax.  In particular the entry for /var/log/messages.
0
rick_me27Author Commented:
I got it.  ha  My syntax was incorrect alright,.  
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.