Finally got a chance to try the function. It seems to be working but not giving me what I need. What is happening is the log file is named @4000... (tai64n date stamp). When I do an 'ls -l' I can see the file and it has a date associated with it. When I run the program and ask it to print out...
Thanks for the quick responses. I will try it out this evening. Would love to do it know but a server is down - priorities.
Thanks again,
Wes Hegge
SignalBlast.Com, Inc.
How do I get the most recent file from directory? I am trying to automate a log analyzer program. The log file names are very cryptic, qmail log files if you wish to know, so I cannot get the proper file by name; so, I want to find it by timestamp. Thanks in advance for the help.
Wes
You need to add the DirectoryIndex directive. i.e.
DirectoryIndex index.html
You may also need to add the DocumentRoot directive. If I remember right this will probably be set for you already. If not set it like so:
DocumentRoot "/var/www/html" <-- or whatever directory you...
RedHat 8 by default uses Apache 2.0.40. For some reason, that I do not know, Apache seems to listen on port 80 by default and that default loads before the httpd.conf file loads. Here is what I did to make my Apache work:
1) Remark out your Listen directive.
2) Use the ServerName directive...
You may also want to look at a program called Webmin (http://www.webmin.com). Excellent web interface for a lot of Linux administration tasks. Also, it would be good for you to pick up a book like Red Hat Linux 8.0 Bible from Wiley press. These books tend to have better first time info than...
I am using a bash script to copy files from my production server to a standby server, really just a simple backup. I have been trying to figure out how to do 2 things with bash.
1) How do I direct an echo statement out to a file? Logging what commands were run from the script.
2) How do I...
Sorry. I have not upgraded my systems to RH9. Not sure if I will do the systems that have the Promise card in them. Promise is not very good at getting drivers out quickly. Heck, as you can see by the posts here, Promise does not know they have RH8 drivers yet!
The need for these drivers is great! I do not know why Promise tech support does not know about these. I got them directly from them.
I have setup an ftp server with the Promise drivers.
ftp://ftp.signalblast.com/promisedrivers
There are 3 files. I only needed the...
Looks like you are trying to receive the message into a virtual user or domain (myhost.com-channan@myhost.com). I can never keep the syntax straight. How did you setup your virtual users/domain? Did you use a program or did you just edit the virtualdomains control file? Can you supply the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.