Computing.Net > Forums > OpenVMS > DCL script with / as parameter

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DCL script with / as parameter

Reply to Message Icon

Name: sethuko
Date: September 15, 2006 at 07:51:28 Pacific
OS: OPEN VMS
CPU/Ram: 7.3-1
Product: Alpha
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: KellyS
Date: September 19, 2006 at 10:59:21 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: DCL script with / as parameter

dcl script help www.computing.net/answers/openvms/dcl-script-help/334.html

DCL script for F$GETQUI needed www.computing.net/answers/openvms/dcl-script-for-fgetqui-needed/310.html

DCL script to check for empty file www.computing.net/answers/openvms/dcl-script-to-check-for-empty-file/296.html