Hello There, Guest! Login Register
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

update for login script /usr/local/bin/nems-info

#1
Please update the login script im german and i use UTF8.
I become an error by login:

Code:
Linux nems 4.14.68-v7+ #1140 SMP Wed Sep 5 17:17:58 BST 2018 armv7l

Last login: Fri Sep  7 09:02:04 2018 from 10.0.1.86
0,00
/usr/local/bin/nems-info: Zeile 109: printf: 0.10836298932384: Ungültige Zahl.
   while executing
"exec -- /usr/local/bin/nems-info loadaverageround"
   invoked from within
"set sysload(10080) [exec -- /usr/local/bin/nems-info loadaverageround]"
   (file "/etc/motd.tcl" line 68)
sysuser@nems:~ $ sudo su



I change the login first line:
Code:
#!/bin/bash
# NEMS Server Info Script (primarily used for MOTD)
export LC_NUMERIC=C
export COMMAND=$1
export VARIABLE=$2

and the last line:


Code:
# Output usage info as no valid command line argument was provided
else
 echo "Usage: ./$me command"
 echo "For help, visit docs.nemslinux.com/commands/nems-info"
fi

unset LC_NUMERIC


now it works .
 
Messages In This Thread
update for login script /usr/local/bin/nems-info - by borgelite - 09-07-2018, 03:28 AM
RE: update for login script /usr/local/bin/nems-info - by Robbie Ferguson - 09-07-2018, 09:20 AM
RE: update for login script /usr/local/bin/nems-info - by Robbie Ferguson - 09-07-2018, 09:36 AM
 
Forum Jump:

Users browsing this thread: 1 Guest(s)