- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Setting up an env variable
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
Forums
Discussions
Discussions
Discussions
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
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
10-23-2002 05:57 AM
10-23-2002 05:57 AM
One of our developers uses the sort() system call rather extensively, which constantly writes stuff to /var/tmp. As /var/tmp is not very large it proposes a problem. I would like to set up a global variable which would redirect the path somewhere else. Where should I begin?
Thanks,
Ron
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 06:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 06:02 AM
10-23-2002 06:02 AM
Re: Setting up an env variable
you can schedule a cron job
# find /var/tmp -type f -mtime +7 -exec rm {} \;
# find /var/tmp -type d -mtime +7 -exec rm -r {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 06:05 AM
10-23-2002 06:05 AM
Re: Setting up an env variable
Where should I redefine $TMPDIR?
Regards,
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 06:06 AM
10-23-2002 06:06 AM
Re: Setting up an env variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 06:08 AM
10-23-2002 06:08 AM
Re: Setting up an env variable
You could define it either in your /etc/profile or directly in the program which calls sort (export TMPDIR=/xxx in shell, putenv("TMPDIR=/xxx") in C).
Regards,
Jean-Louis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 06:12 AM
10-23-2002 06:12 AM
Re: Setting up an env variable
You can make a link to a big file system every thing which is comming to /var/tmp will go to the new FS.
Another method is to enlarge /var & to clean files which are older than a couple of days.
#/usr/bin/touch /var/tmp; /usr/bin/find /var/tmp -mtime +7 -exec -rm -rf {} \;
You can set this command at your crontab.
Regards,
Hamdy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 06:13 AM
10-23-2002 06:13 AM
Re: Setting up an env variable
My first choice is to add space to /var.
Perhaps a workaround is to link /var/tmp to a directory in a filesystem with plenty of space. Still, since the OS expects /var/tmp to be used for sort (and other processes), it's best to give space where it is really needed.
You could also create /var/tmp as a separate filesystem with the space it needs.
Does the application clean up after itself? If not, I'd have a discussion with the developer.
Darrell