The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
unzip particular gzip files among the normal data files thepurple Shell Programming and Scripting 4 11-30-2007 07:17 AM
gzip all the files in a directory er_ashu UNIX for Dummies Questions & Answers 2 11-06-2007 05:05 AM
when I try to run rm on multiple files I have problem to delete files with space umen UNIX for Dummies Questions & Answers 1 09-20-2005 12:20 AM
Need to gzip LARGE files LordJezo UNIX for Dummies Questions & Answers 2 05-02-2005 01:18 PM
gzip, multiple files smbodnar UNIX for Dummies Questions & Answers 2 11-11-2002 12:29 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-01-2007
Registered User
 

Join Date: May 2007
Posts: 48
Can I gzip or delete pacct files in solaris ?

Hi,

On my server there are so many pacct files in /var/adm. It is eating up my /var partition. Can I delete or gzip those files ?

Thanks
NeeleshG
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-01-2007
Registered User
 

Join Date: Sep 2006
Posts: 1,441
you can look for the turnacct command. think its like this
Code:
/usr/lib/acct/turnacct switch; /bin/rm -f /var/adm/pacct?
fine tune it according to your environment, then put in the cron.
Reply With Quote
  #3 (permalink)  
Old 06-01-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,128
When a process ends, the kernel writes one record per process, in the form of acct.h, in the /var/adm/pacct file, so yes, you may delete them.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0