OpenVMS woes

R

Renald Buter

Hello,

I have recently asked our sysadmin to install ruby on one of our OpenVMS
machines. It is the version from the HP freeware CD.

But unfortunately, some very basic stuff does not seem to work, like for
example:

open 'tmpdir'
p File.join(tmpdir, "file.dat")

will output:

"/tmp/file.dat"

which is clearly *not* what I want...And if I set the TMP environment
variable:

define/nolog TMP sys$scratch:

the output will become even worse:

"USR:[BUTER.DEVEL.RUBY]/SYS$SCRATCH:/test123"

that's my current directory with the TMP value added in a most horrific
way.

Now, I assume I'm doing something completely wrong, here. Anyone care to
enlighten me? :)

Regards,

Renald
 
Y

Yukihiro Matsumoto

Hi,

In message "Re: OpenVMS woes"

|But unfortunately, some very basic stuff does not seem to work, like for
|example:
|
| open 'tmpdir'
| p File.join(tmpdir, "file.dat")
|
|will output:
|
| "/tmp/file.dat"
|
|which is clearly *not* what I want...

That means either

* the author (me) has zero knowledge about OpenVMS
* the OpenVMS port is fairly incomplete

or both. Any help is welcome always.

matz.
 
J

Jaypee

Renald Buter a écrit :
Hello,

I have recently asked our sysadmin to install ruby on one of our OpenVMS
machines. It is the version from the HP freeware CD.

But unfortunately, some very basic stuff does not seem to work, like for
example:

open 'tmpdir'
p File.join(tmpdir, "file.dat")

will output:

"/tmp/file.dat"

which is clearly *not* what I want...And if I set the TMP environment
variable:

define/nolog TMP sys$scratch:

the output will become even worse:

"USR:[BUTER.DEVEL.RUBY]/SYS$SCRATCH:/test123"

that's my current directory with the TMP value added in a most horrific
way.
.....
Renald
Hi,

I'm thinking loud ...
You might get more information with a system("show proc/full") from
ruby. show log/full could also be useful.

The environment seen from within the interpreter might not be what you
think it is ... that said, this does not account for the strange way
file paths are built which really looks like a bug.
OpenVMS syntax is device:[dir0.dir1.dir2.dir3]myfile.extension

Just guessing,
J-P (who has not typed any DCL command since 10 years ...)
 
R

Ralph \PJPizza\ Siegler

OpenVMS syntax is device:[dir0.dir1.dir2.dir3]myfile.extension

Just guessing,
J-P (who has not typed any DCL command since 10 years ...)

as an old coot who used to do VMS admin until 1995, am just *dying* to have to point out FULL openVMS file spec is:


NODE"username password"::DEVICE:[DIRECTORY1.DIRECTORY2.....]NAME.EXENSION;VERSION_NUMBER




wheeeee! that was fun! and don't forget about aliases.



Ralph "PJPizza" Siegler
 
R

Renald Buter

Hi,

In message "Re: OpenVMS woes"

|But unfortunately, some very basic stuff does not seem to work, like for
|example:
|
| open 'tmpdir'
| p File.join(tmpdir, "file.dat")
|
|will output:
|
| "/tmp/file.dat"
|
|which is clearly *not* what I want...

That means either

* the author (me) has zero knowledge about OpenVMS
* the OpenVMS port is fairly incomplete

or both. Any help is welcome always.

I'd love to help out, here. However, you will probably be know people on
the dev-lists with more OpenVMS c-programming knowledge than I. For
example, there is: http://www.geocities.jp/vmsruby/

For the pure ruby stuff (and even some basic c-stuff), I can help
though. However, first I need a ruby version that builds on an OpenVMS
alpha machine...

Regards,

Renald
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,174
Messages
2,570,940
Members
47,486
Latest member
websterztechnologies01

Latest Threads

Top