From 492c53c3ff8dccc48365cb83a85f49baf3d79cff Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 26 Jun 2017 17:58:29 -0600 Subject: [PATCH] Update NSH documentation. --- Documentation/NuttShell.html | 85 ++++++++++++++++++++++++++---------- 1 file changed, 61 insertions(+), 24 deletions(-) diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index dae6f3019f..856e824149 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -8,7 +8,7 @@

NuttShell (NSH)

-

Last Updated: June 13, 2017

+

Last Updated: June 26, 2017

@@ -431,67 +431,73 @@
- 2.58 Time execution of another command (time) + 2.58 Start the Telnet Daemon (telnetd)
- 2.59 Unmount a File System (umount) + 2.59 Time execution of another command (time)
- 2.60 Print system information (uname) + 2.60 Unmount a File System (umount)
- 2.61 Unset an Environment Variable (unset) + 2.61 Print system information (uname)
- 2.62 URL Decode (urldecode) + 2.62 Unset an Environment Variable (unset)
- 2.63 URL Encode (urlencode) + 2.63 URL Decode (urldecode)
- 2.64 Add a New User (useradd) + 2.64 URL Encode (urlencode)
- 2.65 Delete a user (userdel) + 2.65 Add a New User (useradd)
- 2.66 Wait for Microseconds (usleep) + 2.66 Delete a user (userdel)
- 2.67 Get File Via HTTP (wget) + 2.67 Wait for Microseconds (usleep)
- 2.68 Hexadecimal Dump of Memory (xd) + 2.68 Get File Via HTTP (wget) + + + +
+ + 2.69 Hexadecimal Dump of Memory (xd) @@ -2823,7 +2829,6 @@ sh <script-path> to by <script-path>.

- + + + + + @@ -5420,6 +5456,7 @@ xxd -i romfs_img >nsh_romfsimg.h
  • Start-up script
  • stm32_appinit.c
  • Synchronous built-in applications
  • +
  • telnetd
  • test
  • time
  • umount
  • @@ -2865,7 +2870,33 @@ sleep <sec> + +
    -

    2.58 Time execution of another command (time)

    +

    2.58 Time Start the Telnet Daemon (telnetd)

    +
    + +

    Command Syntax:

    +
      +telnetd
      +
    +

    + Synopsis. + Start the Telnet daemon if it is not already running. +

    +

    + The Telnet daemon may be started either programmatically by calling nsh_telnetstart() or it may be started from the NSH command line using this telnetd command. +

    +

    + Normally this command would be suppressed with CONFIG_NSH_DISABLE_TELNETDbecause the Telnet daemon is automatically started in nsh_main.c. The exception is when CONFIG_NSH_NETLOCAL is selected. In that case, the network is not enabled at initialization but rather must be enabled from the NSH command line or via other applications. +

    +

    + In that case, when nsh_telnetstart() is called before the the network is initialized, it will fail. +

    + + + +
    +

    2.59 Time execution of another command (time)

    @@ -2923,7 +2954,7 @@ nsh>
    -

    2.59 Unmount a File System (umount)

    +

    2.60 Unmount a File System (umount)

    @@ -2953,7 +2984,7 @@ nsh>
    -

    2.60 Print system information (uname)

    +

    2.61 Print system information (uname)

    @@ -3020,7 +3051,7 @@ uname [-a | -imnoprsv]
    -

    2.61 Unset an Environment Variable (unset)

    +

    2.62 Unset an Environment Variable (unset)

    @@ -3046,7 +3077,7 @@ nsh>
    -

    2.62 URL Decode (urldecode)

    +

    2.63 URL Decode (urldecode)

    @@ -3063,7 +3094,7 @@ urldecode [-f] <string or filepath>
    -

    2.63 URL Encode (urlencode)

    +

    2.64 URL Encode (urlencode)

    @@ -3080,7 +3111,7 @@ urlencode [-f] <string or filepath>
    -

    2.64 Add a New User (useradd)

    +

    2.65 Add a New User (useradd)

    @@ -3097,7 +3128,7 @@ useradd <username> <password>
    -

    2.65 Delete a user (userdel)

    +

    2.66 Delete a user (userdel)

    @@ -3114,7 +3145,7 @@ userdel <username>
    -

    2.66 Wait for Microseconds (usleep)

    +

    2.67 Wait for Microseconds (usleep)

    @@ -3131,7 +3162,7 @@ usleep <usec>
    -

    2.67 Get File Via HTTP (wget)

    +

    2.68 Get File Via HTTP (wget)

    @@ -3158,7 +3189,7 @@ wget [-o <local-path>] <url>
    -

    2.68 Hexadecimal Dump of Memory (xd)

    +

    2.69 Hexadecimal Dump of Memory (xd)

    @@ -3519,6 +3550,11 @@ nsh>
    !CONFIG_DISABLE_SIGNALS CONFIG_NSH_DISABLE_SLEEP
    telnetdCONFIG_NSH_TELNETCONFIG_NSH_DISABLE_TELNETD
    test !CONFIG_NSH_DISABLESCRIPT