Trouble with COMMAND in Quick

Robert J.M. Edis robert.edis@creatcomp.com
Tue, 14 Mar 2000 14:46:38 -0500


G'day all

Thanks to those who responded to my call for ideas.  The problem has been
resolved, somehow ;)

The syntax:

COMMAND "$HOMEDIR/profile.dvep" LABEL "SSEP Development" &
  CLEAR ALL REFRESH ALL

is now working fine.  Our UNIX admin person did 'something' and it now works
though he doesn't know what he did.

Bob: We didn't have to relink the script.
Dirk: The paths are correct and I can execute the script from any dir at the
UNIX prompt.
Ron: The permissions on the remote directory were fine and I have run this
script directly many times before.

The only thing the UNIX admin person did was to create a new .profile for my
account that called another profile script that called the screen (that
calls another profile script that calls another Quick menu!).  I logged off
and back on and the screen worked!  I can now execute the screen and the
scripts directly as well.

Thanks again for the help guys.

Blue

-----Original Message-----
From: Brent Gillan
To: 'powerh-l@list.swau.edu'
Sent: 3/14/00 2:13 PM
Subject: Re: Trouble with COMMAND in Quick

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.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
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.