- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: .profile
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
Forums
Discussions
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
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
01-06-2004 07:12 PM
01-06-2004 07:12 PM
I have a user which have ksh.
i want to use crontab to plan a script which need a variable $SCRIPTS_TOP.
This variable is in .profile (sh) and i don't manage to use it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2004 07:17 PM
01-06-2004 07:17 PM
SolutionIt is the normal situation that the .profile is not run for crontab scripts.
Another solution might be to have the script run from the crontab of root with:
su -
That way the .profile will run too.
Mind that things like stty and tset might hang or break your script!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2004 07:19 PM
01-06-2004 07:19 PM
Re: .profile
* * * * * export $SCRIPT_TOP=somevalue script_name
You should be OK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2004 07:20 PM
01-06-2004 07:20 PM
Re: .profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2004 07:22 PM
01-06-2004 07:22 PM
Re: .profile
* * * * * export $SCRIPT_TOP=somevalue; script_name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2004 05:00 AM
01-08-2004 05:00 AM
Re: .profile
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=114552