- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Redirecting 'memlimits' into a file
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
тАО07-21-2006 03:45 AM
тАО07-21-2006 03:45 AM
anyone ever try to redirect /usr/sap/
a) won't redirect
b) output still is written to screen
c) fills outfile with control chars.
d) vi outfile results in 'line too long' error
e) fold -s oufile works but is full of control chars.
comments?
The problem is memlimits won't write to outfile when directed from a script and continues to write to the screen.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 03:53 AM
тАО07-21-2006 03:53 AM
Re: Redirecting 'memlimits' into a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 04:32 AM
тАО07-21-2006 04:32 AM
Re: Redirecting 'memlimits' into a file
I suspect that SAP is helping you out by always writing on /dev/tty. It is also possible that they are writing to a file descriptor greater than 2 (stderr); a run under tusc would tell you which file descriptor is being used.
I suggest that you minimize the number of extraneous characters by setting and exporting TERM=dumb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 05:45 AM
тАО07-21-2006 05:45 AM
Re: Redirecting 'memlimits' into a file
Thanks again Clay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 06:57 AM
тАО07-21-2006 06:57 AM
Re: Redirecting 'memlimits' into a file
memlimits | tr -cd "[ -~\n\t\f]" > outfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 09:33 AM
тАО07-24-2006 09:33 AM
Re: Redirecting 'memlimits' into a file
thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 11:01 PM
тАО07-24-2006 11:01 PM
Solutionyou can filter many 'motion escapes' out with col -bx
(see man page).
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2006 08:00 AM
тАО07-25-2006 08:00 AM
Re: Redirecting 'memlimits' into a file
# memlimits | col -bx > outfile
Many Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2006 08:00 AM
тАО07-25-2006 08:00 AM