HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- big here documents fill /tmp
Operating System - HP-UX
1833867
Members
2054
Online
110063
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
09-25-2002 10:59 AM
09-25-2002 10:59 AM
big here documents fill /tmp
Hi,
I'm using a here doument to take a uuencoded file out of a script (ksh). The file is bigger than the free space in /tmp so I direct it into somewhere with lots of free space. This does not work as the shell creates a /tmp/shPID.# file, apparently before it starts to create the real output. To me this is not very sensible as it means that the entire contents of the here document are written to disk twice (at least they would be if you had enough space). Can anyone tell me how you stop the shell writing this to /tmp ?
Thanks in advance,
Duncan
I'm using a here doument to take a uuencoded file out of a script (ksh). The file is bigger than the free space in /tmp so I direct it into somewhere with lots of free space. This does not work as the shell creates a /tmp/shPID.# file, apparently before it starts to create the real output. To me this is not very sensible as it means that the entire contents of the here document are written to disk twice (at least they would be if you had enough space). Can anyone tell me how you stop the shell writing this to /tmp ?
Thanks in advance,
Duncan
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2002 11:24 AM
09-25-2002 11:24 AM
Re: big here documents fill /tmp
Hi Duncan:
You don't indicate your release, but recent cumulative Posix shell patches moved the location from /tmp to /var/tmp under the assumption that the later generally has a larger amount of free space.
For 11.0 see PHCO_26789
Regards!
...JRF...
You don't indicate your release, but recent cumulative Posix shell patches moved the location from /tmp to /var/tmp under the assumption that the later generally has a larger amount of free space.
For 11.0 see PHCO_26789
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2002 01:52 PM
09-25-2002 01:52 PM
Re: big here documents fill /tmp
Thanks James. Release is 11.0. Unfortunately I don't happen to have anything like enough disk space in /tmp or /var/tmp and would like to be able to set my own 'tmp' directory for the shell to write into (that is unless I can get the shell not to do what would appear to me to be an extra disk write). I've tried setting $TMPDIR but I think that only works for things like vi.
Any more suggestions ?
Thanks.
Any more suggestions ?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2002 02:35 PM
09-25-2002 02:35 PM
Re: big here documents fill /tmp
just a couple of quick suggestions:
check to see if the script itself is creating the /tmp/shPID.# file instead of the shell.
make sure the script with the here doc isn't in the /tmp directory.
check to see if the script itself is creating the /tmp/shPID.# file instead of the shell.
make sure the script with the here doc isn't in the /tmp directory.
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP