HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing "dot" from PATH
Operating System - HP-UX
1834602
Members
4020
Online
110069
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
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
09-30-2004 10:36 PM
09-30-2004 10:36 PM
I want to remove the dot from the PATH for a cron job. Despite not being in /etc/profile /etc/PATH .profile and no other dot files being sourced it still appears in the PATH. I've tried sh, ksh, and csh, and cannot find out where it is coming from. Any ideas? (HP-UX 10.20,11.00)
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 10:44 PM
09-30-2004 10:44 PM
Solution
Peter,
Sorry to say that's the way cron works. From the man page for crontab:
"cron supplies a default environment for every shell, defining:
HOME=user's-home-directory
LOGNAME=user's-login-id
PATH=/usr/bin:/usr/sbin:.
SHELL=/usr/bin/sh"
Pete
Pete
Sorry to say that's the way cron works. From the man page for crontab:
"cron supplies a default environment for every shell, defining:
HOME=user's-home-directory
LOGNAME=user's-login-id
PATH=/usr/bin:/usr/sbin:.
SHELL=/usr/bin/sh"
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 10:49 PM
09-30-2004 10:49 PM
Re: Removing "dot" from PATH
Hi Peter,
Cron jobs don't by default source any of the files that you mention. The job itself will inherit whatever PATH is set in the cron daemon itself.
You could set PATH to whatever you want and restart cron.
Also check the cron startup script (/sbin/init.d/cron) to see if that sets PATH.
I am assuming that currently, cron jobs have a PATH setting which includes .
Regards,
John
Cron jobs don't by default source any of the files that you mention. The job itself will inherit whatever PATH is set in the cron daemon itself.
You could set PATH to whatever you want and restart cron.
Also check the cron startup script (/sbin/init.d/cron) to see if that sets PATH.
I am assuming that currently, cron jobs have a PATH setting which includes .
Regards,
John
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