Running the perl -v

Unanswered Question
Jul 24th, 2007
User Badges:

I pretty much understand the concept of running the perl -v and -c to minimize the syslog.log files. It is any way I can get to run in a batch file or script to run on a certain schedule or does this has to be done manually? Just curious I'm still learning the product.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Joe Clarke Tue, 07/24/2007 - 09:39
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

You can schedule it using cron on UNIX or at on Windows.

Once you've verified things work on-demand, you can setup cron on UNIX:

0 1 * * * /opt/CSCOpx/bin/ 2>&1 | /usr/lib/sendmail root

or AT on Windows:

at 01:00 /every:M,T,W,Th,F,S,Su C:\progra~1\CSCOpx\bin\perl.exe C:\progra~1\CSCOpx\bin\

(This assumes CiscoWorks is installed in the default location on Windows.)

Those commands will run logrot every day at 1:00 AM. The UNIX cron line will

also send all output of the command to root via email.

dionjiles Tue, 07/24/2007 - 10:52
User Badges:

Thanks, once again I knew I would find the answer here.


This Discussion