- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: paths and permissions
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
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
06-16-2004 03:29 AM
06-16-2004 03:29 AM
paths and permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 03:43 AM
06-16-2004 03:43 AM
Re: paths and permissions
You will need to add that to user path in .profile or /etc/profile
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 03:45 AM
06-16-2004 03:45 AM
Re: paths and permissions
I would first check the PATH before running the command.
$echo $PATH
Make sure the directory appears in path. Then ensure they could be able to actually do a listing of it
$ll /usr/custom/bin/command
I called it as /usr/custom/bin.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 03:47 AM
06-16-2004 03:47 AM
Re: paths and permissions
eg: # whence myscript.sh
If it doens't find it there may be issues with the $PATH variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 03:56 AM
06-16-2004 03:56 AM
Re: paths and permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 04:27 AM
06-16-2004 04:27 AM
Re: paths and permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 04:28 AM
06-16-2004 04:28 AM
Re: paths and permissions
- login as the user
A start the program by typing its full name (with leading /)
B start the program by typing just its name
A: should work.
B: What is the error message?
Do an 'echo $PATH' and check that you didn't make a typo (colon / semicolon).
If you want the directory in $PATH for all users, you can add it to the file /etc/PATH.
Do the old server and new server have the same OS? If not, is the first line of the scripts pointing to a correct shell?
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 04:30 AM
06-16-2004 04:30 AM
Re: paths and permissions
Is it 755 or not ?
If not change it to 755 and see if the program runs or not with the script anme.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 04:34 AM
06-16-2004 04:34 AM
Re: paths and permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 04:38 AM
06-16-2004 04:38 AM
Re: paths and permissions
you must check the calling script. Maybe the PATH is changed within the calling script, or the script is called with its full name?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 04:40 AM
06-16-2004 04:40 AM
Re: paths and permissions
Insert a echo $PATH command just in front of the script name in the other script and see what it tells you.
Just as a side note, if the script is called by another script or via cron, you must set the PATH separately or add it to the existing PATH variable.
export PATH=${PATH}:/your/newdir
HTH,
Abdul.