erlang,mnesia and Windows

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

erlang,mnesia and Windows

Jens Peder Terjesen (ETO)

Could it be that you should use \ (backslash) instead of / (slash)
as directory delimiter?


-----Original Message-----
From: Torbjorn Tornkvist [mailto:tobbe]
Sent: 24. august 2001 13:20
To: erlang-questions
Subject: erlang,mnesia and Windows


I'm trying to get Mnesia going under Windows.
>From a cygwin rxvt/tcsh I get the following:
> erl -mnesia dir d:/cygwin/home/tobbe/tmp
Eshell V5.0.2  (abort with ^G)
1> init:get_arguments().
2> application:start(mnesia).

=ERROR REPORT==== 24-Aug-2001::11:25:02 ===
application_controller: syntax error before: '/': d:/cygwin/home/tobbe/tmp

But ls/0 works fine (tmp is empty):
3> ls("d:/cygwin/home/tobbe/tmp").

And here is another example:
4> file:open("/cygwin/home/tobbe/tmp/heja",[write]).
> ls tmp
> erl -mnesia dir /cygwin/home/tobbe/tmp
Eshell V5.0.2  (abort with ^G)
1> application:start(mnesia).

=ERROR REPORT==== 24-Aug-2001::11:58:53 ===
application_controller: syntax error before: '/': /cygwin/home/tobbe/tmp

Ideas anyone ?

Cheers /Tobbe