Ask a Question related to AIX, Design and Development.
-
sengstock3 #1
wtmp file
I've seen a bunch of posts about this file, but I just want to be
sure anyway..
Is it safe for me to set up a cron job to truncate this file?
ex:
tail -500 wtmp > tmpfile
mv tmpfile wtmp
chmod 664 wtmp
or do I have to do something special to it?
I am on AIX 4.3.3
--
Posted via [url]http://dbforums.com[/url]
sengstock3 Guest
-
problem in binding xml file data to datagrid xml file isgenerated through JSP file
problem it that i am creating xml file using JSP file and i want to bind DataGrid with xml file data that is created using JSP but it will not Bind... -
File Viewer / Bloated file sizes / What is the best file format?
I would like to find a viewer capable of looking at the main Adobe formats as well as the standard formats such as JPG and WMF ... but yet the only... -
[BUG] File#rewind, File#syswrite, File#pos on Cygwin build
On the cygwin build of ruby v1.8.0, I have encountered a strange bug when using rewind, syswrite and pos. If you open a file in read/write mode,... -
wtmp backup
First of all: is it advisable to backup it? for other files i backup i can safely rm them as syslog will recreate them next time it writes on... -
Confused about locking a file via file.flock(File::LOCK_EX)
I am writing a ruby appl under AIX where I need to update the /etc/hosts table. I would like to make sure that during my update nobody else can... -
Kent Squires #2
Re: wtmp file
your method is not safe
wtmp is not an ascii file
you need to do the following:
/usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/tmpfile
tail -500 /tmp/tmpfile > /tmp/tmpfile2
/usr/sbin/acct/fwtmp -ic < /tmp/tmpfile2 > /var/adm/wtmp
rm /tmp/tmpfile
rm /tmp/tmpfile2
make sure you have bos.acct installed to use the fwtmp command
On Mon, 22 Sep 2003 10:25:05 -0400, sengstock3
<member25238@dbforums.com> wrote:
>
>I've seen a bunch of posts about this file, but I just want to be
>sure anyway..
>
>
>
>Is it safe for me to set up a cron job to truncate this file?
>
>
>
>ex:
>
>
>
>tail -500 wtmp > tmpfile
>
>mv tmpfile wtmp
>
>chmod 664 wtmp
>
>
>
>
>
>or do I have to do something special to it?
>
>
>
>I am on AIX 4.3.3Kent Squires Guest



Reply With Quote

