ITEM: E8120L

Korn Shell script does not work when I rexec from a VM machine.


Question:

I have a script that I rexec from a VM machine coming in as root.  As 
soon as it starts, it returns the error "lsvg not found."  I can run 
this script fine from a cron job or an at job.  The syntax of the rexec 
is "echo sysbackscript | batch."  We are using AIX @3.2.3E and are 
connected via token ring to the VM machine.

Response:

rshd has a default PATH set internally that cannot be changed.
It conforms to BSD behavior, although /usr/bin/X11 has been
added in AIX.  The default PATH is:

  :/usr/ucb:/bin:/usr/bin:/usr/bin/X11

The command that your script is looking for, lsvg, is located 
in /etc which is not in the default PATH.  You should add 
statements similar to the following to your script:

  PATH=$PATH:/etc
  export PATH

This will add /etc to the search path for your script.


Support Line: Korn Shell script does not work when I rexec from a VM machine. ITEM: E8120L
Dated: November 1993 Category: N/A
This HTML file was generated 99/06/24~13:30:53
Comments or suggestions? Contact us