|
Something that I would probably find in an hour but if someone alread knows: How can I start the erlang shell under emacs with some arguments such as -name .. -cookie .. etc? I got as far as (set 'inferior-erlang-machine-options '("-name foo")) but it didn't quite work :-( johan ----------- Johan Montelius _______________________________________________ erlang-questions mailing list [hidden email] http://www.erlang.org/mailman/listinfo/erlang-questions |
|
You can set the enviroment variable ERL_FLAGS to
"-name .. -cookie .. etc". On Fri, Sep 15, 2006 at 07:48:29AM +0200, jmT2 wrote: > > > Something that I would probably find in an hour but if someone alread > knows: > > How can I start the erlang shell under emacs with some arguments such as > -name .. -cookie .. etc? I got as far as (set > 'inferior-erlang-machine-options '("-name foo")) but it didn't quite work > :-( > > johan > > > > > ----------- > Johan Montelius > _______________________________________________ > erlang-questions mailing list > [hidden email] > http://www.erlang.org/mailman/listinfo/erlang-questions -- / Raimo Niskanen, Erlang/OTP, Ericsson AB _______________________________________________ erlang-questions mailing list [hidden email] http://www.erlang.org/mailman/listinfo/erlang-questions |
|
Thanks, but then I cant easily have multiple erlang shells with different names. The trick was to do: (set 'inferior-erlang-machine-options '("-name" "foo")) And now I'm only fighting the problems with running distributed on XP. Works on two machines of three, close but no cigar :-( Any hints are welcome. Johan Den 2006-09-15 09:04:16 skrev Raimo Niskanen <[hidden email]>: > You can set the enviroment variable ERL_FLAGS to > "-name .. -cookie .. etc". > > > > On Fri, Sep 15, 2006 at 07:48:29AM +0200, jmT2 wrote: >> >> >> Something that I would probably find in an hour but if someone alread >> knows: >> >> How can I start the erlang shell under emacs with some arguments such as >> -name .. -cookie .. etc? I got as far as (set >> 'inferior-erlang-machine-options '("-name foo")) but it didn't quite >> work >> :-( >> >> johan >> >> >> >> >> ----------- >> Johan Montelius >> _______________________________________________ >> erlang-questions mailing list >> [hidden email] >> http://www.erlang.org/mailman/listinfo/erlang-questions > -- ----------- Johan Montelius jmT2 _______________________________________________ erlang-questions mailing list [hidden email] http://www.erlang.org/mailman/listinfo/erlang-questions |
|
jmT2 <[hidden email]> writes:
> Thanks, but then I cant easily have multiple erlang shells > with different names. The trick was to do: > > (set 'inferior-erlang-machine-options '("-name" "foo")) > > And now I'm only fighting the problems with running distributed on XP. > Works on two machines of three, close but no cigar :-( Any hints are > welcome. > I guess that there are not many hints available unless the problem is DNS or firewall related. Can you tell if there are any major differences in those windows XP computers? Like windows xp home vs pro, different firewall program or settings, different antivirus protection, different processor, etc. It's a pity that there seems to be no linux strace program equivalent for windows. Jani Hakala _______________________________________________ erlang-questions mailing list [hidden email] http://www.erlang.org/mailman/listinfo/erlang-questions |
|
On 9/16/06, Jani Hakala <[hidden email]> wrote:
> It's a pity that there seems to be no linux strace program equivalent > for windows. You mean like for example the one at http://www.softpedia.com/get/Programming/Debuggers-Decompilers-Dissasemblers/Strace%20NT.shtml or http://www.bindview.com/Services/RAZOR/Utilities/Windows/strace_readme.cfm ? ;-) best regards, Vlad _______________________________________________ erlang-questions mailing list [hidden email] http://www.erlang.org/mailman/listinfo/erlang-questions |
|
"Vlad Dumitrescu" <[hidden email]> writes:
> On 9/16/06, Jani Hakala <[hidden email]> wrote: >> It's a pity that there seems to be no linux strace program >> equivalent for windows. > > You mean like for example the one at > > http://www.softpedia.com/get/Programming/Debuggers-Decompilers-Dissasemblers/Strace%20NT.shtml > I now tested this one briefly. In documentation it is said that '- Does not trace child processes created by the traced process - Does not trace functions which are called by using GetProcAddress method' This could mean that device drivers can't be traced if +A is used. Windows port of erlang is built so that is uses GetProcAddress in the very beginning of erl.c in order to call win_erlexec. Also in the inet_drv.c GetProcAddress is used and some sort of jumptable way to call socket functions is used instead of direct calls. It would be nice to hear why this actually is necessary. I guess StraceNT program could work a little bit better otherwise so that it might be possible to see what socket related functions return. In any case StraceNT displays calls like LoadLibrary("beam.dll") "[T2644] LoadLibraryA(662b9830, 0, 24a758, 0, ...) = 71ab0000" This doesn't look so good, I would except to see LoadLibrary("beam.dll") I guess linux strace could also have some trouble if dlopen and dlsym are used. > or > > http://www.bindview.com/Services/RAZOR/Utilities/Windows/strace_readme.cfm > I found this one earlier and decided that I don't want to touch it. It requires changing HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\EnforceWriteProtection 'This disables the kernel from checking for errant memory overwrites...' Support for 'Windows XP' is said to be preliminary. Jani Hakala _______________________________________________ erlang-questions mailing list [hidden email] http://www.erlang.org/mailman/listinfo/erlang-questions |
|
> >> It's a pity that there seems to be no linux strace program
> >> equivalent for windows. > > > > You mean like for example the one at Well, if you had said "there seems to be no strace that works" I wouldn't have assumed you didn't found these. I haven't tested them, but I thought they might be useful (maybe the calls that are pertinent to the problem will be shown in the trace) regards, Vlad _______________________________________________ erlang-questions mailing list [hidden email] http://www.erlang.org/mailman/listinfo/erlang-questions |
| Powered by Nabble | Edit this page |
