diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index afbfcb0bda1..0a08b0001b2 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -8,7 +8,7 @@

NuttShell (NSH)

-

Last Updated: December 13, 2015

+

Last Updated: December 31, 2015

@@ -85,7 +85,7 @@ 2.0 Commands. -> +
@@ -407,49 +407,55 @@
- 2.54 Unmount a File System (umount) + 2.54 Time execution of another command (time)
- 2.55 Print system information (uname) + 2.55 Unmount a File System (umount)
- 2.56 Unset an Environment Variable (unset) + 2.56 Print system information (uname)
- 2.57 URL Decode (urldecode) + 2.57 Unset an Environment Variable (unset)
- 2.58 URL Encode (urlencode) + 2.58 URL Decode (urldecode)
- 2.59 Wait for Microseconds (usleep) + 2.59 URL Encode (urlencode)
- 2.60 Get File Via HTTP (wget) + 2.60 Wait for Microseconds (usleep)
- 2.61 Hexadecimal Dump of Memory (xd) + 2.61 Get File Via HTTP (wget) + + + +
+ + 2.62 Hexadecimal Dump of Memory (xd) @@ -1369,15 +1375,15 @@ df [-h] As an example:

If CONFIG_NSH_CMDOPT_DF_H is defined in the NuttX configuration, then the df will also support an option -h which may be used to show the volume information in human readable format. @@ -1715,27 +1721,27 @@ insmod <file-path> <module-name>

Example:

@@ -1901,7 +1907,7 @@ lsmod

Example:

@@ -2038,12 +2044,12 @@ mkdir <path>

Example:

@@ -2093,20 +2099,20 @@ mkfifo <path>

Example

@@ -2211,29 +2217,29 @@ mount -t <fstype> [-o <options>] <block-device> <dir-

Examples:

Using mount to mount a file system:

Using mount to enumerate mounts:

@@ -2496,16 +2502,16 @@ rmdir <dir-path>

Example:

@@ -2527,13 +2533,13 @@ rmmod <module-name>

Example:

@@ -2622,7 +2628,58 @@ sleep <sec>
+ +
-

2.54 Unmount a File System (umount)

+

2.54 Time execution of another command (time)

+
+ +

Command Syntax:

+ +

+ Synopsis. + Perform command timing. + This command will execute the following <command> string and then show how much time was required to execute the command. + Time is shown with a resolution of 100 microseconds which may be beyond the resolution of many configurations. + Note that the <command> string must be enclosed in quotation marks. +

+

Example:

+ +

+ The addition 100 microseconds in this example is the additional overhead of the time command execution itself which is included in the total. + Timing quantization errors could also result in small errors in the measurement. +

+

+ Notice that: +

+ +

+ Since the sleep command is executed in background, the sleep command completes almost immediately. + As opposed to the following where the time command is run in background with the sleep command: +

+ + + + +
+

2.55 Unmount a File System (umount)

@@ -2639,20 +2696,20 @@ umount <dir-path>

Example:

-

2.55 Print system information (uname)

+

2.56 Print system information (uname)

@@ -2719,7 +2776,7 @@ uname [-a | -imnoprsv]
-

2.56 Unset an Environment Variable (unset)

+

2.57 Unset an Environment Variable (unset)

@@ -2745,7 +2802,7 @@ nsh>
-

2.57 URL Decode (urldecode)

+

2.58 URL Decode (urldecode)

@@ -2762,7 +2819,7 @@ urldecode [-f] <string or filepath>
-

2.58 URL Encode (urlencode)

+

2.59 URL Encode (urlencode)

@@ -2779,7 +2836,7 @@ urlencode [-f] <string or filepath>
-

2.59 Wait for Microseconds (usleep)

+

2.60 Wait for Microseconds (usleep)

@@ -2796,7 +2853,7 @@ usleep <usec>
-

2.60 Get File Via HTTP (wget)

+

2.61 Get File Via HTTP (wget)

@@ -2823,7 +2880,7 @@ wget [-o <local-path>] <url>
-

2.61 Hexadecimal Dump of Memory (xd)

+

2.62 Hexadecimal Dump of Memory (xd)

@@ -2838,13 +2895,13 @@ xd <hex-address> <byte-count>

Example:

@@ -3169,6 +3226,11 @@ nsh> + + + + + @@ -4726,11 +4788,12 @@ mount -t vfat /dev/ram1 /tmp
  • Start-up script
  • Synchronous built-in applications
  • test
  • -
  • up_cxxinitialize()
  • +
  • time
  • umount
  • uname
  • unset
  • until
  • +
  • up_cxxinitialize()
  • up_nsh.c
  • urldecode
  • urlencode
  • !CONFIG_NSH_DISABLESCRIPT CONFIG_NSH_DISABLE_TEST
    time CONFIG_NSH_DISABLE_TIME
    umount !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_READABLE3