10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi All
I have created a file in /etc/cron.daily on redhat linux 7.3 version host
called applicationscript
cat applictaionscript
#!/bin/bash
/prod/data/routine.sh
cat /prod/data/routine.sh
#!/bin/bash
#details
regular=/prod/data/jboss/logs
backup=/prod/data/logs
#echo "Moving logs"... (3 Replies)
Discussion started by: anil529
3 Replies
2. UNIX for Advanced & Expert Users
Hi All,
I have a script which checks the status of HP Smart Array & then emails me the output.
The script run fine when executed manually but I receive no output when configured in a cron job.
The script is below:
hpacucli ctrl slot=3 show config | mail -s "ARRAY STATUS-`date`"... (6 Replies)
Discussion started by: coolatt
6 Replies
3. Shell Programming and Scripting
I need someone to help me out to upload script on host but I have problem can anyone help me out ? (2 Replies)
Discussion started by: spit
2 Replies
4. UNIX for Dummies Questions & Answers
Hi guys,
I've got two separate logrotates I'd like to run, one for Tomcat and one for Apache, but I'd like to run the Tomcat one daily and the Apache one weekly. Now, the logrotate itself is working fine, but although I have 'daily' in Tomcat, and 'weekly' in the Apache one, the latter is... (2 Replies)
Discussion started by: jimbob01
2 Replies
5. HP-UX
Hi,
I have script in the cron which run at predefined time everyday.
If the script fails then we get the mail and a log is created.
But last night the script didnt run. If the script is even started it creates log so it seems the script never ran. It has never happened before.
Th... (5 Replies)
Discussion started by: shipra_31
5 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I juat wondering how can you set it up so that .sh files will execute automatically once a day. from google I've got use crontab but when I type this into my session it say I am not allowed to use this programme. Any other ways to achieve what I'm looking for?
thanks (1 Reply)
Discussion started by: blackieconnors
1 Replies
7. Shell Programming and Scripting
Good morning. I am searching for "how-to"'s for some particular questions:
1. How to write a script in HP-UX 11.
2. How to schedule a script.
3. How to "call" scripts from the original script.
4. How to su to another user from within a script.
This is the basics of what the... (15 Replies)
Discussion started by: instant000
15 Replies
8. UNIX for Dummies Questions & Answers
I need to create a cron job that will run daily to change permissions to a particular folder to 666 every 24hrs.
I have no experience with crontab or cron jobs at all so if someone can guide me through this it would be a great help.
The folder's example is 'www/test/htdocs'
Also if you... (3 Replies)
Discussion started by: Xechno
3 Replies
9. UNIX for Dummies Questions & Answers
At what time does cron.daily implement and how can i change this or set it etc?
Thanks in advance. (5 Replies)
Discussion started by: ITFcraig
5 Replies
10. Shell Programming and Scripting
Hello,
I have a shell script that runs every minute to process incoming files delivered externally via SFTP to a directory. Basically the script works and processes the files however I get an error when a new file is delivered into the directory.
Please see my script below. A new file is... (2 Replies)
Discussion started by: richo king
2 Replies
make_combined_log.pl(1) General Commands Manual make_combined_log.pl(1)
NAME
make_combined_log.pl - make combined logfile from SQL database
SYNOPSIS
make_combined_log.pl <days> <virtual host>
DESCRIPTION
This perl script extracts the httpd access data from a MySQL database and formats it properly for parsing by 3rd-party log analysis tools.
The script is intended to be run out by cron. Its commandline arguments tell it how many days' worth of access records to extract, and
which virtual_host you are interested in (because many people log several virthosts to one MySQL db.) This permits you to run it daily,
weekly, every 9 days -- whatever you decide.
NOTE
By "days" I mean "chunks of 24 hours prior to the moment this script is run." So if you run it at 4:34 p.m. on the 12th, it will go back
through 4:34 p.m. on the 11th.
KNOWN ISSUES
Because GET and POST are not discriminated in the MySQL log, we'll just assume that all requests are GETs. This should have negligible
effect on any analysis software. This could be remedied IF you stored the full HTTP request in your database instead of just the URI, but
that's going to cost you a LOT of space really quickly...
Because this is somewhat of a quick hack it doesn't do the most robust error checking in the world. Run it by hand to confirm your usage
before putting it in crontab.
AUTHOR
Edward Rudd <eddie@omegaware.com>
MAN PAGE CREATED BY
Michael A. Toth <lirul.lists@gmail.com> - based on comments of script
COMMENTS
This man page was written using xml2man (1) by the same author.
Manuals User make_combined_log.pl(1)