lib/erlang/messenger/src/pm_node.erl in poolparty-0.2.69 vs lib/erlang/messenger/src/pm_node.erl in poolparty-0.2.84
- old
+ new
@@ -131,11 +131,11 @@
%% {stop, Reason, Reply, State} |
%% {stop, Reason, State}
%% Description: Handling call messages
%%--------------------------------------------------------------------
handle_call({run_command, Cmd}, _From, State) ->
- Reply = os:cmd(". /etc/profile && server-fire-cmd \""++Cmd++"\""),
+ Reply = os:cmd(Cmd),
{reply, Reply, State};
handle_call({update_load, Type, Load}, _From, State) ->
{Type, NewState} = store_load_for_type(Type, Load, State),
Reply = get_average_load_listing(Type, NewState),
?TRACE("Updated load", [Reply]),
@@ -195,7 +195,6 @@
%%--------------------------------------------------------------------
code_change(_OldVsn, State, _Extra) ->
{ok, State}.
% Private
-server_location() ->
- global:whereis_name(node()).
+server_location() -> global:whereis_name(node()).
\ No newline at end of file