Christopher Bonhage <[email protected]> writes:
> couchdb -i
>
> DbName = <<"database_name_here">>,
> DocId = <<>>,
> rr(couchdb),
> {ok, Db} = couch_db:open(DbName, [{user_ctx,
> #user_ctx{roles=[<<"_admin">>]}}]),
> case couch_db:open_doc(Db, DocId) of
> {ok, Doc} ->
> couch_db:update_doc(Db, Doc#doc{deleted=true}, []);
> Error ->
> Error
> end.
>
>
I am looking for a user reference for the erlang shell, but so far none found.
When I run the first command the response appears to be an error report.
[...]
crasher:
initial call: couch_event_sup:init/1
pid: <0.97.0>
registered_name: []
exception exit: {error,{file_error,"/var/log/couchdb/couch.log",eacces}}
in function gen_server:init_it/6
ancestors: [couch_primary_services,couch_server_sup,<0.37.0>]
messages: []
links: [<0.90.0>,<0.6.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 377
stack_size: 24
reductions: 116
neighbours:
[...]
1>
If I run as root I do not get an interactive shell.
--
Regards,
Brian Winfrey