|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
weird mneisa/escript problem in r13i am using mnesia from within some escript code, and i cannot get
it to work on both r13b01 and r13b02-2. the error occurs when i call mnesia:create_schema( [Node] ). i specify an mnesia dir on line 2 of the escript code using one of: 1) %%! -mnesia dir '"test/bunderl"' 2) %%! -mneisa dir "test/bunderl" when i use version 1, it works on r13b01, but fails on r13b02-2 with: {"Cannot create Mnesia dir", "/home/garry/admin/\"test/bunderl\"", enoent}} and yes, the appropriate dirs exist, and it fails the same if i clean it out between runs. i am running it from /home/garry/admin, and test/bundle exists and is writable and all that. when i use version 2, it works on r13b02-2, but fails on r13b01 with: =ERROR REPORT==== 2-Nov-2009::23:28:06 === application_controller: bad term: test/bunderl escript: exception throw: {create_failed,bunderl@k2, {application_load_error, {bad_environment_value,"test/bunderl"}}} am i doing something wrong, or is there a bug in one or the other of these releases? -- Garry Hodgson Lead Member of Technical Staff AT&T Chief Security Office (CSO) "This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited." ________________________________________________________________ erlang-questions mailing list. See http://www.erlang.org/faq.html erlang-questions (at) erlang.org |
|
|
Re: weird mneisa/escript problem in r13Try
-mnesia dir '"test/bunderl"' NOTE: double quote within single quotes/ -- baliga "Point of view is worth 80 IQ points" --Alan Kay http://dudefrommangalore.blogspot.com/ ________________________________ From: Garry Hodgson <garry@...> To: erlang-questions@... Sent: Mon, November 2, 2009 8:45:48 PM Subject: [erlang-questions] weird mneisa/escript problem in r13 i am using mnesia from within some escript code, and i cannot get it to work on both r13b01 and r13b02-2. the error occurs when i call mnesia:create_schema( [Node] ). i specify an mnesia dir on line 2 of the escript code using one of: 1) %%! -mnesia dir '"test/bunderl"' 2) %%! -mneisa dir "test/bunderl" when i use version 1, it works on r13b01, but fails on r13b02-2 with: {"Cannot create Mnesia dir", "/home/garry/admin/\"test/bunderl\"", enoent}} and yes, the appropriate dirs exist, and it fails the same if i clean it out between runs. i am running it from /home/garry/admin, and test/bundle exists and is writable and all that. when i use version 2, it works on r13b02-2, but fails on r13b01 with: =ERROR REPORT==== 2-Nov-2009::23:28:06 === application_controller: bad term: test/bunderl escript: exception throw: {create_failed,bunderl@k2, {application_load_error, {bad_environment_value,"test/bunderl"}}} am i doing something wrong, or is there a bug in one or the other of these releases? -- Garry Hodgson Lead Member of Technical Staff AT&T Chief Security Office (CSO) "This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited." ________________________________________________________________ erlang-questions mailing list. See http://www.erlang.org/faq.html erlang-questions (at) erlang.org |
|
|
Re: weird mneisa/escript problem in r13Yogish Baliga wrote:
> Try > > -mnesia dir '"test/bunderl"' > > NOTE: double quote within single quotes/ i'm sorry i didn't make it clear in my post, but that's what version 1 is. -- Garry Hodgson AT&T Chief Security Office (CSO) "This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited." ________________________________________________________________ erlang-questions mailing list. See http://www.erlang.org/faq.html erlang-questions (at) erlang.org |
|
|
Re: weird mneisa/escript problem in r13Looks like there is some shell interpretation going on.
What is the output of application:get_all_env(mnesia)? Also can you try without quotes? -- baliga "Point of view is worth 80 IQ points" --Alan Kay http://dudefrommangalore.blogspot.com/ ________________________________ From: Garry Hodgson <garry@...> To: Yogish Baliga <yogishb@...> Cc: erlang-questions@... Sent: Tue, November 3, 2009 5:05:30 AM Subject: Re: [erlang-questions] weird mneisa/escript problem in r13 Yogish Baliga wrote: > Try > > -mnesia dir '"test/bunderl"' > > NOTE: double quote within single quotes/ i'm sorry i didn't make it clear in my post, but that's what version 1 is. -- Garry Hodgson AT&T Chief Security Office (CSO) "This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited." ________________________________________________________________ erlang-questions mailing list. See http://www.erlang.org/faq.html erlang-questions (at) erlang.org |
|
|
Re: weird mneisa/escript problem in r13Yogish Baliga wrote:
> Looks like there is some shell interpretation going on. > > What is the output of application:get_all_env(mnesia)? > > Also can you try without quotes? i've tried it both ways, as mentioned in the original post. the problem is not getting this to work. i can do that easily. the problem is that it behaves so differently in two very similar versions r13b01 and r13b02. i see nothing in the release notes to inidicate such a change, so i thought i'd mention it, in case it was a bug. -- Garry Hodgson AT&T Chief Security Office (CSO) "This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited." ________________________________________________________________ erlang-questions mailing list. See http://www.erlang.org/faq.html erlang-questions (at) erlang.org |
|
|
Re: weird mneisa/escript problem in r13On Wed, Nov 4, 2009 at 4:50 AM, Garry Hodgson <garry@...> wrote:
> Yogish Baliga wrote: >> >> Looks like there is some shell interpretation going on. >> >> What is the output of application:get_all_env(mnesia)? >> >> Also can you try without quotes? > > i've tried it both ways, as mentioned in the original post. the problem is > not getting this to work. i can do that easily. the problem is that it behaves > so differently in two very similar versions r13b01 and r13b02. i see nothing > in the release notes to inidicate such a change, so i thought i'd mention it, > in case it was a bug. It was a bug, but it isn't anymore. In earlier releases, the arguments on the escript line beginning with %%! was passed to the virtual machine via an environment variable. As a side effect of this the arguments was mangled a bit, causing some of the quotation marks to disappear. This was fixed in Erts 5.7.3 (OTP-1060). The arguments are now passed to the VM as they are written in the escript, without any mangling. Unfortunately this bug fix was not documented. I hope that has not caused you too much trouble. /Håkan --- Håkan Mattsson (uabhams) Erlang/OTP, Ericsson AB ________________________________________________________________ erlang-questions mailing list. See http://www.erlang.org/faq.html erlang-questions (at) erlang.org |
|
|
Re: weird mneisa/escript problem in r13Håkan Mattsson wrote:
> It was a bug, but it isn't anymore. cool. > In earlier releases, the arguments on the escript line beginning with > %%! was passed to the virtual machine via an environment variable. As > a side effect of this the arguments was mangled a bit, causing some of > the quotation marks to disappear. This was fixed in Erts 5.7.3 > (OTP-1060). The arguments are now passed to the VM as they are written > in the escript, without any mangling. Unfortunately this bug fix was > not documented. I hope that has not caused you too much trouble. it wasn't a big deal. just wanted to mention it in case it was unknown. thanks for the info. -- Garry Hodgson AT&T Chief Security Office (CSO) "This e-mail and any files transmitted with it are AT&T property, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited." ________________________________________________________________ erlang-questions mailing list. See http://www.erlang.org/faq.html erlang-questions (at) erlang.org |
| Free embeddable forum powered by Nabble | Forum Help |