Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi
Can we use / as command script parameter?Purpose is I want to create an environment where some of the Unix command (cd, ls,mkdir etc.) should work in VMS.
E.g.
@CD /usr/bin
As per my analysis DCL will throw an error if we use / as parameter.
@CD "/" will work, but I can not ask the user to enter a command @CD "/usr/bin"
Thanks
Sethu
Thanks
Sethu

Hello Sethu,
I don't know of a way to use / as a command parameter when you invoke a DCL script. But I have heard that there are other ways to emulate UNIX. HP hosts a set of freeware programs called GNV ("GNU's not VMS") that provides a BASH command shell and apparently some other utilities. See http://h71000.www7.hp.com/OpenSourc...
By the way, if you stay with DCL, you can make the commands a little more UNIX-like by defining a symbol to invoke the command file, for instance:
$ CD :== @sys$login:cd.com
This allows the user to omit the "@" and makes the command file available whatever the user's current default directory. You can redefine DCL commands in a similar way:
ls :== directory
Yours,
Kelly

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |