GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- which scripts are called by a particular script
Operating System - HP-UX
1850456
Members
2230
Online
104054
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
12-20-2001 08:10 AM
12-20-2001 08:10 AM
which scripts are called by a particular script
Hi,
How to find out which scripts are called by a particular script ???
Scripts are 2 big 2 examine by hand.
Thanks,
Guido
How to find out which scripts are called by a particular script ???
Scripts are 2 big 2 examine by hand.
Thanks,
Guido
It all depends on physics
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2001 08:21 AM
12-20-2001 08:21 AM
Re: which scripts are called by a particular script
Ther is no way to find that out without running the script in a way.
You could do the following:
Copy the script into an empty directory.
verify that PATH is not set in the script.
set PATH=.:/usr/bin:/... (not including the directories where the reall scripts are expected).
run the script (ksh scriptname). ksh will complain about he first command it does not find and exit.
You can provide a dummy version of the missing command in your working directory, or create a soft link to the real command, and the repeat the procedure to find the second missing command. ETC.
There is a tool tusc or truss, which allows you to track all system calls (you are interested in exec).
Regards, Klaus
There is a live before death!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2001 10:35 AM
12-20-2001 10:35 AM
Re: which scripts are called by a particular script
I would suggest that you place at the beginning of the script a set -x. This shows what is executing as it executes. You can probably key off the external programs being called by the path to them being shown.
#!/bin/ksh
set -x
#!/bin/ksh
set -x
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 2026 Hewlett Packard Enterprise Development LP