- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Where is "shortp" located.
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
Discussions
Discussions
Forums
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
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
тАО07-26-2010 06:33 AM
тАО07-26-2010 06:33 AM
Where is "shortp" located.
I have a process "shortp" on my system that I can use from everywhere.
My question is: Where is it?
"which" doesn't show it. Nor does "man -k".
"alias" returns "shortp=_ShPS_".
So where can I find the source for this process?
RayB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2010 06:36 AM
тАО07-26-2010 06:36 AM
Re: Where is "shortp" located.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2010 06:52 AM
тАО07-26-2010 06:52 AM
Re: Where is "shortp" located.
# whereis _ShPS_
_ShPS_:
# find / -local -name _ShPS_
find: cannot search /mnt/tyche/dev_backup
#
RayB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2010 09:56 AM
тАО07-26-2010 09:56 AM
Re: Where is "shortp" located.
find / -follow -name "_ShPS_" -print
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2010 11:08 AM
тАО07-26-2010 11:08 AM
Re: Where is "shortp" located.
If you can execute that from every user, you should be able to use "whence -v _ShPS_" to get its path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2010 11:18 AM
тАО07-26-2010 11:18 AM
Re: Where is "shortp" located.
$ whence -v _ShPS_
_ShPS_ is a function
$
"man -k function" returns 1000 lines...
I'm still stuck.
RayB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2010 11:30 AM
тАО07-26-2010 11:30 AM
Re: Where is "shortp" located.
Scan your .profile and any other files that are sourced for your shell function.
I assume you aren't using FPATH?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2010 01:07 PM
тАО07-26-2010 01:07 PM
Re: Where is "shortp" located.
File name is 'func1':
junk()
{
ls -l func1
}
export junk
junk
whence -v junk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2010 06:56 AM
тАО07-27-2010 06:56 AM
Re: Where is "shortp" located.
If you are using ksh try the "functions" command to list the defined functions. It might be defined from your .profile file.
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2010 10:22 PM
тАО07-27-2010 10:22 PM
Re: Where is "shortp" located.
Can u check the same with ptree command.
ptree
Vipin