10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
$ cat tmp.sh
#!/tools/bin/bash
echo $BASH_VERSION
$ cat tmp.pl
#!/usr/local/bin/perl
use strict;
use warnings;
use DBI;
use CGI;
system("tmp.sh");$ tmp.sh
3.2.48(1)-release
The result is as expected.
$ tmp.pl
3.2.25(1)-releaseThe result is not as expected.
The shell directive in... (5 Replies)
Discussion started by: carloszhang
5 Replies
2. AIX
Hi Admins.
I have installed logrotate rpm on Aix 6.1.
After the installation of rpm, I don't find /etc/logrotate.conf file and /etc/logrotate.d dir .
The config file is located in /opt/freeware/etc/logrotate.conf.
When I ran
logrotate -v /opt/freeware/etc/logrotate.conf
I get below... (2 Replies)
Discussion started by: snchaudhari2
2 Replies
3. Shell Programming and Scripting
I have written script which is working in Home directory perfectly and also compressing log files and rotating correctly. But, when i try to run script for /var/log/ i am able to get compressed log files but not able to get rotation of compressed log files. Please suggest.
I am using below command... (5 Replies)
Discussion started by: VSom007
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
My requirements are
I wanted to move my daily logs to /appl/logs/old folder
Archive and compress all 10 days older log files under /appl/logs/old in YYYYMMDD format file
To remove any 60 days older log files from /appl/logs/old
I tried this scenario with logrotate utility
... (1 Reply)
Discussion started by: laxyblack
1 Replies
5. Red Hat
Hi,
I am getiing emails from cron.daily with subject:
Cron root@vsftp run-parts /etc/cron.daily
/etc/cron.daily/logrotate:
/sbin/killall -HUP radiusd
: line 1: /sbin/killall: No such file or directory
error: error running postrotate script for /var/log/vsftpd/logfile
the... (6 Replies)
Discussion started by: renuka
6 Replies
6. UNIX for Advanced & Expert Users
Hi there,
I want to rotate the logfiles which are located in /var/log/jboss/tomcat*
so I have created a file named as 'tomat' in /etc/logrotate.d/tomcat with the following content.
# cat /etc/logrotate.d/tomcat
/var/log/jboss/tomcat_access_log*.log {
daily
nocreate
... (2 Replies)
Discussion started by: skmdu
2 Replies
7. Web Development
Hi,
Does the apache Allow from directive support regular expressions?
such as: Allow from ^web11blah\.blah\.blah\.yahoo\.com$
what i want to do:
allow access from hosts in the range web1160blah.blah.blah.yahoo.com to web1189blah.blah.blah.yahoo.com
notice the 1160 to 1189 range as part... (3 Replies)
Discussion started by: Yogesh Sawant
3 Replies
8. Shell Programming and Scripting
Hi all,
I need to check the contents of my vpath directive in my file. Is it possible to check the contents of the vpath directive as we do for a variable like @echo '$vpath' .
Please let me know the above is correct or suggest me the correct one.
Thanks in advance.
-Jerry (6 Replies)
Discussion started by: jerryragland
6 Replies
9. Programming
Hi there,
I'm working on a c++ project and I need to use some libraries which are part of a framework. I installed it on my home directory, and alle the .hh are located in subdirs of my home.
I'd like to include the files I need just as if they where std c header, that is:
#include... (2 Replies)
Discussion started by: clalfa
2 Replies
10. Programming
hey everyone. havent posted here in a longgggg time. hope to see some familiar faces!
heres my question, ive been doing basic programming in c++ again and want to use getch(). in *nix i have to use the curses library, and in windows conio.h
is there a way i can have the compiler determine... (2 Replies)
Discussion started by: norsk hedensk
2 Replies