10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello:
I have a script that gets the ACLs of the /home directory and its contents with getfacl and writes them to a file. The script is run by a cron job and I don't want it to rewrite or append to an already existing file. The point of backing permissions up is because I may need to restore them.... (2 Replies)
Discussion started by: Cacializ
2 Replies
2. Ubuntu
Hi,
Below is what i am seeing in /var/log/messages on ubuntu machine.
2013-01-14T18:29:39.319736+00:00 test01 ldap-mail: test1
Jan 14 18:29:39 test01 ldap-mail: test2
2013-01-14T18:29:39.320792+00:00 test01 ldap-mail: test3
Jan 14 18:29:39 test01 ldap-mail: test4But on other ubuntu... (29 Replies)
Discussion started by: prash358
29 Replies
3. Shell Programming and Scripting
Hi All,
I have a requirement to write a shell script to search the logs in past 1 hour and extract some pattern from it and count it cumulatively to a file.
The problem which I'm facing here is - logs rotates on size basis, say if size of log reaches 5 MB then new log will be generated and... (7 Replies)
Discussion started by: Gem_In_I
7 Replies
4. Red Hat
Hi all,
We have the exim mail server configured on cpanel in centos. We have 5 dedicated ip's. So, when i sending mails to client systems, it should be rotate that ip addressees on every 15 minutes.
That means Ip rotating. How can i do it. Can anybody show me how to do it.
Thanks, (0 Replies)
Discussion started by: mastansaheb
0 Replies
5. Shell Programming and Scripting
I want to take daily backup(11pm) of /var/www to /mnt/bak excluding /var/www/videos and /var/www/old. HOW to implement a rotating snapshot method, so that i can have multiple(say 4) automatically rotating backups. (0 Replies)
Discussion started by: proactiveaditya
0 Replies
6. Shell Programming and Scripting
Hi there,
I like to ask how i shall monitor specific string or keyword in rotating log files. e.g. I have at 10 rotating logfiles.
I use the command below to grep the string, but eventually become non functional because the logfile rotates and new logfile is active.
tail -f <logfile1> |grep... (1 Reply)
Discussion started by: shtobias
1 Replies
7. Solaris
Hi,
I am having some troubles using /usr/sbin/logadm to rotate sulog yearly. Can someone please assist with the correct syntax to rotate the sulog yearly? I'd like to maintain up to 3 years of logs.
I am on Solaris 10.
Thanks, (1 Reply)
Discussion started by: lwif
1 Replies
8. UNIX for Advanced & Expert Users
I have been using logrotate for quite awhile now. Most logs are rotated daily, using /etc/cron.daily. I noticed that the logs in question have not been rotated since April 6, but daily up to that point.
I have logrotate in /etc/cron.daily. The basic command is:
/usr/sbin/logrotate... (1 Reply)
Discussion started by: manouche
1 Replies
9. Shell Programming and Scripting
Hi All,
I have some data (below) that I need to rotate 90 degrees - in other words I want to flip each row into a column.
I've found the following code in the book "Effective awk programming" but it doesn't work on my input data. I've used arrays before but I can't make it work... can... (3 Replies)
Discussion started by: pondlife
3 Replies
10. Shell Programming and Scripting
Hi folks,
I want to rotate a string in Clock or Ani Clock wise.
That is
If the string is "TAMIL"
the out put should be
TAMIL
AMILT
MILTA
ILTAM
LTAMI
TAMIL
Please do help. (1 Reply)
Discussion started by: bubeshj
1 Replies