Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/mcored.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2479 by niro, Thu Sep 10 08:48:45 2015 UTC revision 2480 by niro, Thu Sep 10 10:41:11 2015 UTC
# Line 27  DEBUG=1 Line 27  DEBUG=1
27  NOCOLORS=0  NOCOLORS=0
28  WEBCRLF=0  WEBCRLF=0
29  QUIET=0  QUIET=0
30    # daemon silent mode, read from env
31    : ${SILENT=0}
32    
33  # argvs are global variables - this fixes issues with whitespaces  # argvs are global variables - this fixes issues with whitespaces
34  # global argvs, the whole command line  # global argvs, the whole command line
# Line 38  run=run Line 40  run=run
40  valid_session=no  valid_session=no
41    
42  # tell what we are  # tell what we are
43  echo "Connected to $(print_version)"  [[ ${SILENT} = 1 ]] || echo "Connected to $(print_version)"
44    
45  while [[ ${run} = run ]]  while [[ ${run} = run ]]
46  do  do
47   # use an echo here not read -p '>' because sslsvd ignores the prompt pattern   # use an echo here not read -p '>' because sslsvd ignores the prompt pattern
48   echo -n '> '   [[ ${SILENT} = 1 ]] || echo -n '> '
49   read line   read line
50   eval "GLOBAL_ARGV=( ${line} )"   eval "GLOBAL_ARGV=( ${line} )"
51    

Legend:
Removed from v.2479  
changed lines
  Added in v.2480