Trouble with COMMAND in Quick
Brent Gillan
bgillan@aerocomp.ca
Tue, 14 Mar 2000 13:13:28 -0600
I'm assuming the error message displayed is from the command labelled
"Using link". It looks like the variable HOMEDIR conatins
"./home/gener/v63oln" . Is the "./" (dot slash) supposed to be there ?
If you are running the app from the /home/gener directory, then the
shell is looking for the "home" directory under your current working
directory. IE. /home/gener/home/gener/v63oln. Try creating a directory
/home/gener/bin and putting your shell scripts there. Add this directory
to your PATH (set it in you .profile). Make sure this directory is in
the PATH variable before "./" (if "./" is in your PATH) otherwise it
will search your current directory before /home/gener/bin. You should
not have to use the full path location when executing the script. HP-UX
should search through the directories specified in the PATH variable
until it finds the script.
"Robert J.M. Edis" wrote:
> G'day all
>
> Environment:
> O/S: HP/UX 10.20
> Shell: KSH
> PH: version 7.33.d3
>
> I have created a simple menu screen to execute serveral shell scripts. The
> COMMAND works fine when the script is in the same directory as the screen,
> i.e. the local directory, but doesn't work when the script is in another
> directory. I get the error:
>
> sh: ./home/gener/v63oln/profile.dvep: not found.
>
> I have tried using a link and get the same result.
>
> The script has -rwxrwxrwx privileges in both local and remote locations.
>
> I can execute the remote script fine from the unix prompt so I know my
> account has the privileges required.
>
> Any ideas?
>
> The code is below:
>
> Blue
>
> -----------------------------------------------------------------
> CANCEL CLEAR
> SCREEN PROFILE_MENU MENU
>
> TITLE "System Log On Menu" CENTRE AT 3,41
>
> SKIP TO LINE 6
> ALIGN (20,24,)
> COMMAND "/home/gener/profile.dvep" LABEL "Using full path" &
> CLEAR ALL REFRESH ALL
> COMMAND "$HOMEDIR/profile.dvep" LABEL "Using link " &
> CLEAR ALL REFRESH ALL
> COMMAND "profile.dvep" LABEL "Using local script" &
> CLEAR ALL REFRESH ALL
> COMMAND "exit" LABEL "Log off"
>
> BUILD
>
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
> Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
> This list is closed, thus to post to the list, you must be a subscriber.
--
Brent Gillan
Aerocomp Solutions Inc.
mailto:bgillan@aerocomp.ca
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.