Previous Thread
Next Thread
Print Thread
Issue when using symbolic link #11342 08 Jan 18 10:22 AM
Joined: Aug 2016
Posts: 371
J
John Andreasen Offline OP
Member
OP Offline
Member
J
Joined: Aug 2016
Posts: 371
Hello,

We attempted to configure a CentOS 7 system with a symbolic link at /vm pointing to another directory (/var/data/prairiefarmers/vm.) It appeared to work as intended at first, but we had an issue related to using APPEND with xcall AMOS. The code below will demonstrate the issue.
Code
XCALL AMOS,"APPEND out.txt=f1.txt,f2.txt"
It generates the following output:

A-Shell License Update Utility 2.4(135)
Assigning free floating ATE license to client...
License issued to ATE client
?Login please

When running the same code without the symlink, it executes properly, and "?Login please" is not displayed. Do you foresee any other potential concerns with using a symlink with A-Shell in this way?
A-Shell Version: 6.4.1556.0

Thanks,
John Andreasen

Re: Issue when using symbolic link #11343 08 Jan 18 11:45 AM
Joined: Jun 2001
Posts: 11,785
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,785
There are a couple of issues here.

The main potential problem with creating symbolic links to directories used by the A-Shell DEVICE mapping system is that it's not easy to control or predict which version of the directory name the OS will supply to A-Shell when it tries to reverse-map the OS directory to the A-Shell directory.

In your example, depending on the context, the process's current login, or a file's directory, might be /vm/miame/dsk0/007006, or it might be /var/data/prairiefarmers/vm/miame/dsk0/007006. Depending on your DEVICE statements, one of those may be unrecognizable to A-Shell.

The second issue is related to that. The error message you are getting suggests that a new A-Shell instance is being launched in order to execute the XCALL AMOS, "APPEND..." command, but the new instance doesn't think the current directory is a valid A-Shell login directory (for the reason just stated).

For the XCALL AMOS login issue, you could probably fix it by forcing AMOS to use the in-process mode (i.e. either specify a 1 for the 3rd parameter, or add OPTIONS=AMOS_RUNSBR to the MIAME.INI).

The first issue may not really present any problems, and if it does, you might experiment with creating duplicate DEVICE statements (one for /vm and one for the symbolic link to it). Whichever version is listed first will be the one that is actually used for converting AMOS-style specs to native specs. The second version would only come into play for reverse translations from native to AMOS.

Re: Issue when using symbolic link #11344 09 Jan 18 04:13 PM
Joined: Aug 2016
Posts: 371
J
John Andreasen Offline OP
Member
OP Offline
Member
J
Joined: Aug 2016
Posts: 371
OK, I have tested adding two device statements to the MIAME file, and it definitely solves the problem we were having.

Thanks!

Re: Issue when using symbolic link #11345 09 Jan 18 04:43 PM
Joined: Jun 2001
Posts: 11,785
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,785
Glad to hear it. We should probably add link to this topic from the UNIX Installation section of the A-Shell Reference for the next person to stumble onto this issue. Ty?


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3