Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2008 04:53 PM
тАО09-24-2008 04:53 PM
$ sh sym python
PYTHON == "$ python_root:[vms.bin]python"
$ sh log python_root
"PYTHON_ROOT" = "$2$DKA0:[3RD_PARTY.PYTHON.PYTHON250.]" (LNM$SYSTEM_TABLE)
The python symbol works as it should:
* If I type тАЬpythonтАЭ, I go into an interactive python session.
* If I type тАЬpython xdoit.pyтАЭ, xdoit.py is run.
But if I try to execute the symbol contents directly, i.e.:
$ $ python_root:[vms.bin]python
Or:
$ $ python_root:[vms.bin]python xdoit.py
These do not work?
And for both, I get:
%DCL-W-NOLBLS, label ignored - use only within command procedures
\PYTHON_ROOT:\
%DCL-W-NOCOMD, no command on line - reenter with alphabetic first character
If I get rid of one of the starting dollar signs, I still get the same error.
What is going on here and what do I need to do to get the latter cases to work?
Thanks,
John
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2008 05:11 PM
тАО09-24-2008 05:11 PM
Re: symbols
either
$ PYTHON
or
$ r python_root:[vms.bin]python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2008 05:31 PM
тАО09-24-2008 05:31 PM
Re: symbols
$ r python_root:[vms.bin]python xdoit.py
The run command does not seem to like me passing the xdoit.py argument? Could not find any examples of run using arguments in the online documentation.
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2008 05:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2008 05:48 PM
тАО09-24-2008 05:48 PM
Re: symbols
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2008 06:52 PM
тАО09-24-2008 06:52 PM
Re: symbols
>$ r python_root:[vms.bin]python xdoit.py
>
>The run command does not seem to like me
>passing the xdoit.py argument?
That's correct. The DCL RUN command doesn't understand parameters. There are several ways of passing parameters to images, here are a few. In each case
1) Define a foreign command symbol
$ foreign_command="$
$ foreign_command parameter parameter...
2) use the DCL$PATH logical name
$ DEFINE DCL$PATH dir1,dir2,dir3,...
$ image-name parameter parameter
(in this case image-name is just the name, not the full file specification)
3) use the (undocumented) MCR command
$ MCR
4) define a DCL command using the CLD utility and call CLI$ routines to determine values of parameters and qualifiers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2008 07:01 PM
тАО09-24-2008 07:01 PM
Re: symbols
The FAQ covers many useful topics:
http://www.hoffmanlabs.com/vmsfaq/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2008 09:21 AM
тАО09-25-2008 09:21 AM
Re: symbols
I have learned a valuable lesson - not to close my posts too hastily. I would like to give you guys points, but it appears that I cannot?
It turns out that for us, the optimal solution appears to be to use DCL$PATH. It is less intrusive than adding a command to the command table (& easier in general).
Thanks for your help!
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2008 09:54 AM
тАО09-25-2008 09:54 AM
Re: symbols
The series of columns that I did for OpenVMS.org on logical names and related topics may also be of interest.
They are cross linked, but the last one [on logical names] can be found at http://www.openvms.org/stories.php?story=03/03/03/4358185
There are also some other presentations that I have done in the past for Connect [the user group] (fka Encompass, fka DECUS). Those can be reached via my firm's presentations page at http://www.rlgsc.com/presentations.html
I hope that the above is helpful.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2008 03:10 AM
тАО09-26-2008 03:10 AM
Re: symbols
>> the optimal solution appears to be to use DCL$PATH.
This is true for most executables or command-files.
In the case of python as far I know it is not enough to know the main executable, but it needs some more definitions/logicals pointing to a phython root directory. Therefore it needs some kind of setup file, which then can have the command definition as well.