Browse Source

start self

Namdak Tonpa 9 years ago
parent
commit
c20e098fc8
3 changed files with 3 additions and 2 deletions
  1. 1 1
      include/mad.hrl
  2. BIN
      mad
  3. 2 1
      src/mad_run.erl

+ 1 - 1
include/mad.hrl

@@ -1 +1 @@
--define(VERSION,"4b8e20").
+-define(VERSION,"4161f0").

BIN
mad


+ 2 - 1
src/mad_run.erl

@@ -2,7 +2,8 @@
 -compile(export_all).
 
 start(_) ->                            % run_dir > < log_dir
-    {_,Status,X} = sh:run("run_erl",["-daemon",".",".","exec mad rep"],
+    mad:info("Scripting: ~p~n",[escript:script_name()]),
+    {_,Status,X} = sh:run("run_erl",["-daemon",".",".","exec "++escript:script_name()++" rep"],
       binary,".",
         [{"RUN_ERL_LOG_GENERATIONS","1000"},
          {"RUN_ERL_LOG_MAXSIZE","20000000"},