10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Friends,
I have weird problem with my Linux OS.
I have few files which is owned by root but could not be modified (edit, chmod, chown etc)
# id
uid=0(root) gid=0(root) groups=0(root)
# whoami
root
# ls -l /etc/security/access-sshd.conf
-rw-r--r-- 1 root root 431 Jun 22 03:31... (12 Replies)
Discussion started by: baluchen
12 Replies
2. UNIX for Dummies Questions & Answers
My problem: Both access and error logs do not rotate any more and get really large.
They are located here: /srv/www/+vHost name here+/logs/
Configuration seems to be here:
/etc/logrotate.conf => looks OK, including "size 10M" to avoid large files
(/etc/logrotate.d => is empty)
manually... (4 Replies)
Discussion started by: floko
4 Replies
3. Shell Programming and Scripting
Hi,
I have below script in logrotate.d to rotate logs.
logs are not rotating after the file grow to 1k, do you have any idea? Is it because of it just only 1K?
Please let me know if the below syntax is in correct.
# more trotate
/sourcepath/*/servers/*/logs/*log... (2 Replies)
Discussion started by: lpprasad321
2 Replies
4. HP-UX
I need to rotate a file in HP-UX of a application. I´ve tried to do a task in the cron with a script (with sed and ed commands) but it was a successfully option (the application continued writing the file :( )
LINEAS_OUT=$(wc -l < $RMISTDOUT)
LINEAS_FIN=1,expr $LINEAS_OUT - 100p
sed... (19 Replies)
Discussion started by: werkraft
19 Replies
5. UNIX for Dummies Questions & Answers
Hi,
i want to log rotate the /var/adm/messages file after reaching the specified limit and delete those logs. how do i do that.
i you solaris 10 OS ,Please help me in doing the same.... (2 Replies)
Discussion started by: Rahulne25
2 Replies
6. Shell Programming and Scripting
Hi ! all I am just trying to check range in my datafile
pls tell me why its resulting wrong
admin@IEEE:~/Desktop$ cat test.txt
0 28.4
5 28.4
10 28.4
15 28.5
20 28.5
25 28.6
30 28.6
35 28.7
40 28.7
45 28.7
50 28.8
55 28.8
60 28.8
65 28.1... (2 Replies)
Discussion started by: Akshay Hegde
2 Replies
7. UNIX for Dummies Questions & Answers
Hello All,
I am learning unix and basically I want to rotate one of my application logs every 1 hour. I need to rotate that file every one hour. I looked in the forums and googled.. but couldn;t get proper information. Requesting you all to kindly guide me.
Our application is running on... (4 Replies)
Discussion started by: arunpvp
4 Replies
8. Programming
i have an array
a={1,2,3,4,5}
the output should be
a= {4,5,1,2,3}
please help me writin this program in c. (10 Replies)
Discussion started by: pgmfourms
10 Replies
9. UNIX for Advanced & Expert Users
hi ,
what is the meaning of log rotate?
how do i rotate /var/adm/wtmps log and gzip it? (6 Replies)
Discussion started by: cromohawk
6 Replies
10. Shell Programming and Scripting
hi friends i need a shell script to rotate the logs in a directory, dated n days back. can anybody of help. appreciate.. (0 Replies)
Discussion started by: satya_skm
0 Replies