Jul 22, 2004 #1 boghog Programmer Jul 22, 2004 1 US How would you propose to retreive the qualified pathname of the executing script, within the script? i.e. /usr/bob/myscript or something of this nature? Any help or direction would be appreciated
How would you propose to retreive the qualified pathname of the executing script, within the script? i.e. /usr/bob/myscript or something of this nature? Any help or direction would be appreciated
Jul 22, 2004 #2 PHV MIS Nov 8, 2002 53,708 FR Have you tried $0 ? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
Have you tried $0 ? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Jul 23, 2004 #3 vgersh99 Programmer Jul 27, 2000 2,146 US Code: #!/bin/ksh thisFile="$(whence ${0})" vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
Code: #!/bin/ksh thisFile="$(whence ${0})" vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+