Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using logadm to rotate a directory?

Status
Not open for further replies.

fpgiv

Programmer
Oct 1, 2003
91
US
Hi,
Is it possible to use logadm to rotate all files inside a directory? I don't know the name of all of the files I want rotated, so I am not sure how to go about doing this.
Thanks.
 
afak it works only with files. But you can write a wrapper script which just runs a logadm on each file, you just need to grep -v for the .{0,1,2,3,4,5,...) Files

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top