- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Tmp file too large
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2005 10:08 PM
тАО06-06-2005 10:08 PM
Re: Tmp file too large
# wc -l alert.log
10000
# ed alert.log <
w
q
EOF
# wc -l alert.log
9000
eg above the alert log is 10000 lines long. The "ed" script will delete the 1st 1000 lines and save the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2005 10:11 PM
тАО06-06-2005 10:11 PM
Re: Tmp file too large
The following size limitations apply: 256 characters per global command list, 64 characters per file name, and 32 MB characters in the buffer.
32MB file size limit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2005 10:18 PM
тАО06-06-2005 10:18 PM
Re: Tmp file too large
cp alert.log alert.log.tmp
awk 'NR>1000' alert.log.tmp > alert.log
rm alert.log.tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2005 11:52 PM
тАО06-06-2005 11:52 PM
Re: Tmp file too large
Then remove the original name and mv the new_name to original name.
If you want view before you trim use split.
I think you can also do the same in SAM. open routine tasks and logs files. Add your file to list with recommended size. Then you should be able to trim from sam.
Regds
TT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2005 12:42 AM
тАО06-07-2005 12:42 AM
Re: Tmp file too large
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2005 04:24 AM
тАО06-07-2005 04:24 AM
Re: Tmp file too large
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2005 03:07 PM
тАО06-08-2005 03:07 PM
Re: Tmp file too large
The way I liked best of doing this was by using this
command: "split -b 20m target"
- « Previous
-
- 1
- 2
- Next »