- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mailx uses /tmp
Operating System - HP-UX
1753734
Members
4381
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО01-11-2001 10:18 AM
тАО01-11-2001 10:18 AM
i have noticed that mailx -f username somehow seems to 'take'space from the /tmp directory, however nothing is written to the /tmp dir. upon exit of the mailx program, a bdf returns to normal..what is happening and what other programs perform similar to mailx -f??
thank you
thank you
Solved! Go to Solution.
- Tags:
- mailx
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2001 11:30 AM
тАО01-11-2001 11:30 AM
Solution
Hi Kevin,
It's possible to unlink() a file, yet keep it open, and continue to write to it:
1) The space the file uses isn't returned to the file system until the file is closed, usually when the process terminates.
2) The file has no name, and thus, can't be seen with ls, ll, find, and so forth.
3) This is commonly done with temporary files, so that if the system crashes while the file is open, there is not a file left laying around, taking up space.
If you can run glance, or the 3rd party tool lsof, you should be able to see files that mailx has open, and I suspect you'll see that mailx does in fact have an inode open in /tmp, with no associated filename.
Hope this is helpful to you,
Bruce Laughlin
It's possible to unlink() a file, yet keep it open, and continue to write to it:
1) The space the file uses isn't returned to the file system until the file is closed, usually when the process terminates.
2) The file has no name, and thus, can't be seen with ls, ll, find, and so forth.
3) This is commonly done with temporary files, so that if the system crashes while the file is open, there is not a file left laying around, taking up space.
If you can run glance, or the 3rd party tool lsof, you should be able to see files that mailx has open, and I suspect you'll see that mailx does in fact have an inode open in /tmp, with no associated filename.
Hope this is helpful to you,
Bruce Laughlin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2001 11:38 AM
тАО01-11-2001 11:38 AM
Re: mailx uses /tmp
More info...
Here's an indication, using glance, that mailx has opened an inode in /tmp, with no associated filename:
From the glance "open files" screen, for the mailx process:
4
Now, let's see if there is any such inode _viewable_ in the /tmp directory:
# cd /tmp
# ls -i | grep 241
#
Nope, nothing, so mailx has likely opened this file, unlinked it, and is using it as a temporary file. When mailx closes the file, or terminates, the space used by this file will be returned to the filesystem.
Also, you can get lsof at the following URL:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.51/
Regards,
Bruce Laughlin
Here's an indication, using glance, that mailx has opened an inode in /tmp, with no associated filename:
From the glance "open files" screen, for the mailx process:
4
Now, let's see if there is any such inode _viewable_ in the /tmp directory:
# cd /tmp
# ls -i | grep 241
#
Nope, nothing, so mailx has likely opened this file, unlinked it, and is using it as a temporary file. When mailx closes the file, or terminates, the space used by this file will be returned to the filesystem.
Also, you can get lsof at the following URL:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.51/
Regards,
Bruce Laughlin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2001 11:43 AM
тАО01-11-2001 11:43 AM
Re: mailx uses /tmp
I have that lsof program, and i have tried it. This is kind of what I thought was happening, mailx just reserves space kindof, but your explanation clears it up for me, thank you.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP