diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index a814813c5e..99510817bd 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -8,7 +8,7 @@

NuttShell (NSH)

-

Last Updated: April 30, 2013

+

Last Updated: July 18, 2013

@@ -113,253 +113,259 @@
- 2.6 Copy Files (cp) + 2.6 Compare Files (cmp)
- 2.7 Show or set the date and time (date) + 2.7 Copy Files (cp)
- 2.8 Copy and Convert Files (dd) + 2.8 Show or set the date and time (date)
- 2.9 Show volume status (df) + 2.9 Copy and Convert Files (dd)
- 2.10 Echo Strings and Variables (echo) + 2.10 Show volume status (df)
- 2.11 Execute User Code (exec) + 2.11 Echo Strings and Variables (echo)
- 2.12 Exit NSH (exit) + 2.12 Execute User Code (exec)
- 2.13 Show Memory Manager Status (free) + 2.13 Exit NSH (exit)
- 2.14 Get File Via TFTP (get) + 2.14 Show Memory Manager Status (free)
- 2.15 Show Usage Command Usage (help) + 2.15 Get File Via TFTP (get)
- 2.16 Hexadecimal Dump of File or Device (hexdump) + 2.16 Show Usage Command Usage (help)
- 2.17 Manage Network Configuration (ifconfig) + 2.17 Hexadecimal Dump of File or Device (hexdump)
- 2.18 Take a network down (ifdown) + 2.18 Manage Network Configuration (ifconfig)
- 2.19 Bring a network up (ifup) + 2.19 Take a network down (ifdown)
- 2.20 Send a signal to a task (kill) + 2.20 Bring a network up (ifup)
- 2.21 Setup/teardown the Loop Device (losetup) + 2.21 Send a signal to a task (kill)
- 2.22 List Directory Contents (ls) + 2.22 Setup/teardown the Loop Device (losetup)
- 2.23 Calculate MD5 (md5) + 2.23 List Directory Contents (ls)
- 2.24 Access Memory (mb, mh, and mw) + 2.24 Calculate MD5 (md5)
- 2.25 Show Current Tasks and Threads (ps) + 2.25 Access Memory (mb, mh, and mw)
- 2.26 Create a Directory (mkdir) + 2.26 Show Current Tasks and Threads (ps)
- 2.27 Create a FAT Filesystem (mkfatfs) + 2.27 Create a Directory (mkdir)
- 2.28 Create a FIFO (mkfifo) + 2.28 Create a FAT Filesystem (mkfatfs)
- 2.29 Create a RAMDISK (mkrd) + 2.29 Create a FIFO (mkfifo)
- 2.30 Mount a File System (mount) + 2.30 Create a RAMDISK (mkrd)
- 2.31 Rename a File (mv) + 2.31 Mount a File System (mount)
- 2.32 Mount an NFS file system (nfsmount) + 2.32 Rename a File (mv)
- 2.33 Check Network Peer (ping) + 2.33 Mount an NFS file system (nfsmount)
- 2.34 Send File Via TFTP (put) + 2.34 Check Network Peer (ping)
- 2.35 Show Current Working Directory (pwd) + 2.35 Send File Via TFTP (put)
- 2.36 Remove a File (rm) + 2.36 Show Current Working Directory (pwd)
- 2.37 Remove a Directory (rmdir) + 2.37 Remove a File (rm)
- 2.38 Set an Environment Variable (set) + 2.38 Remove a Directory (rmdir)
- 2.39 Execute an NSH Script (sh) + 2.39 Set an Environment Variable (set)
- 2.40 Wait for Seconds (sleep) + 2.40 Execute an NSH Script (sh)
- 2.41 Unmount a File System (umount) + 2.41 Wait for Seconds (sleep)
- 2.42 Unset an Environment Variable (unset) + 2.42 Unmount a File System (umount)
- 2.43 URL Decode (urldecode) + 2.43 Unset an Environment Variable (unset)
- 2.44 URL Encode (urlencode) + 2.44 URL Decode (urldecode)
- 2.45 Wait for Microseconds (usleep) + 2.45 URL Encode (urlencode)
- 2.46 Get File Via HTTP (wget) + 2.46 Wait for Microseconds (usleep)
- 2.47 Hexadecimal Dump of Memory (xd) + 2.47 Get File Via HTTP (wget) + + + +
+ + 2.48 Hexadecimal Dump of Memory (xd) @@ -892,7 +898,24 @@ cd [<dir-path>|-|~|..] + +
-

2.6 Copy Files (cp)

+

2.6 Compare Files (cmp)

+
+ +

Command Syntax:

+ +

+ Synopsis. + Compare of the contents of the file at <path1> with the contents of the file at <path2>. Returns an indication only if the files differ. +

+ + + +
+

2.7 Copy Files (cp)

@@ -910,7 +933,7 @@ cp <source-path> <dest-path>
-

2.7 Show or set the date and time (date)

+

2.8 Show or set the date and time (date)

@@ -937,7 +960,7 @@ data -s "Sep 1 11:30:00 2011"
-

2.8 Copy and Convert Files (dd)

+

2.9 Copy and Convert Files (dd)

@@ -995,7 +1018,7 @@ nsh> dd if=/dev/ram0 of=/dev/null
-

2.9 Show Volument Status (df)

+

2.10 Show Volument Status (df)

@@ -1026,7 +1049,7 @@ nsh>
-

2.10 Echo Strings and Variables (echo)

+

2.11 Echo Strings and Variables (echo)

@@ -1044,7 +1067,7 @@ echo [<string|$name> [<string|$name>...]]
-

2.11 Execute User Code (exec)

+

2.12 Execute User Code (exec)

@@ -1063,7 +1086,7 @@ exec <hex-address>
-

2.12 Exit NSH (exit)

+

2.13 Exit NSH (exit)

@@ -1082,7 +1105,7 @@ exit
-

2.13 Show Memory Manager Status (free)

+

2.14 Show Memory Manager Status (free)

@@ -1124,7 +1147,7 @@ nsh>
-

2.14 Get File Via TFTP (get)

+

2.15 Get File Via TFTP (get)

@@ -1159,7 +1182,7 @@ get [-b|-n] [-f <local-path>] -h <ip-address> <remote-path>
-

2.15 Show Usage Command Usage (help)

+

2.16 Show Usage Command Usage (help)

@@ -1191,7 +1214,7 @@ help [-v] [<cmd>]
-

2.16 Hexadecimal Dump of File or Device (hexdump)

+

2.17 Hexadecimal Dump of File or Device (hexdump)

@@ -1215,7 +1238,7 @@ hexdump <file or device>
-

2.17 Manage Network Configuration (ifconfig)

+

2.18 Manage Network Configuration (ifconfig)

@@ -1269,7 +1292,7 @@ ifconfig nic_name ip_address
-

2.18 Take a network down (ifdown)

+

2.19 Take a network down (ifdown)

@@ -1292,7 +1315,7 @@ ifdown eth0
-

2.19 Bring a network up (ifup)

+

2.20 Bring a network up (ifup)

@@ -1315,7 +1338,7 @@ ifup eth0
-

2.20 Send a signal to a task (kill)

+

2.21 Send a signal to a task (kill)

@@ -1356,7 +1379,7 @@ nsh>
-

2.21 Setup/teardown the Loop Device (losetup)

+

2.22 Setup/teardown the Loop Device (losetup)

@@ -1409,7 +1432,7 @@ losetup d <dev-path>
-

2.22 List Directory Contents (ls)

+

2.23 List Directory Contents (ls)

@@ -1446,7 +1469,7 @@ ls [-lRs] <dir-path>
-

2.23 Calculate MD5 (md5)

+

2.24 Calculate MD5 (md5)

@@ -1463,7 +1486,7 @@ md5 [-f] <string or filepath>
-

2.24 Access Memory (mb, mh, and mw)

+

2.25 Access Memory (mb, mh, and mw)

@@ -1517,7 +1540,7 @@ nsh>
-

2.25 Show Current Tasks and Threads (ps)

+

2.26 Show Current Tasks and Threads (ps)

@@ -1543,7 +1566,7 @@ nsh>
-

2.26 Create a Directory (mkdir)

+

2.27 Create a Directory (mkdir)

@@ -1578,7 +1601,7 @@ nsh>
-

2.27 Create a FAT Filesystem (mkfatfs)

+

2.28 Create a FAT Filesystem (mkfatfs)

@@ -1598,7 +1621,7 @@ mkfatfs <path>
-

2.28 Create a FIFO (mkfifo)

+

2.29 Create a FIFO (mkfifo)

@@ -1636,7 +1659,7 @@ nsh>
-

2.29 Create a RAMDISK (mkrd)

+

2.30 Create a RAMDISK (mkrd)

@@ -1687,7 +1710,7 @@ nsh>
-

2.30 Mount a File System (mount)

+

2.31 Mount a File System (mount)

@@ -1766,7 +1789,7 @@ nsh> mount
-

2.31 Rename a File (mv)

+

2.32 Rename a File (mv)

@@ -1784,7 +1807,7 @@ mv <old-path> <new-path>
-

2.32 Mount an NFS file system (nfsmount)

+

2.33 Mount an NFS file system (nfsmount)

@@ -1803,7 +1826,7 @@ nfsmount <server-address> <mount-point> <remote-path>
-

2.33 Check Network Peer (ping)

+

2.34 Check Network Peer (ping)

@@ -1836,7 +1859,7 @@ nsh>
-

2.34 Send File Via TFTP (put)

+

2.35 Send File Via TFTP (put)

@@ -1871,7 +1894,7 @@ put [-b|-n] [-f <remote-path>] -h <ip-address> <local-path>
-

2.35 Show Current Working Directory (pwd)

+

2.36 Show Current Working Directory (pwd)

@@ -1901,7 +1924,7 @@ nsh>
-

2.36 Remove a File (rm)

+

2.37 Remove a File (rm)

@@ -1935,7 +1958,7 @@ nsh>
-

2.37 Remove a Directory (rmdir)

+

2.38 Remove a Directory (rmdir)

@@ -1970,7 +1993,7 @@ nsh>
-

2.38 Set an Environment Variable (set)

+

2.39 Set an Environment Variable (set)

@@ -1996,7 +2019,7 @@ nsh>
-

2.39 Execute an NSH Script (sh)

+

2.40 Execute an NSH Script (sh)

@@ -2014,7 +2037,7 @@ sh <script-path>
-

2.40 Wait for Seconds (sleep)

+

2.41 Wait for Seconds (sleep)

@@ -2031,7 +2054,7 @@ sleep <sec>
-

2.41 Unmount a File System (umount)

+

2.42 Unmount a File System (umount)

@@ -2061,7 +2084,7 @@ nsh>
-

2.42 Unset an Environment Variable (unset)

+

2.43 Unset an Environment Variable (unset)

@@ -2087,7 +2110,7 @@ nsh>
-

2.43 URL Decode (urldecode)

+

2.44 URL Decode (urldecode)

@@ -2104,7 +2127,7 @@ urldecode [-f] <string or filepath>
-

2.44 URL Encode (urlencode)

+

2.45 URL Encode (urlencode)

@@ -2121,7 +2144,7 @@ urlencode [-f] <string or filepath>
-

2.45 Wait for Microseconds (usleep)

+

2.46 Wait for Microseconds (usleep)

@@ -2138,7 +2161,7 @@ usleep <usec>
- 2.46 Get File Via HTTP (wget) + 2.47 Get File Via HTTP (wget)
@@ -2165,7 +2188,7 @@ wget [-o <local-path>] <url>
-

2.47 Hexadecimal Dump of Memory (xd)

+

2.48 Hexadecimal Dump of Memory (xd)

@@ -2253,6 +2276,11 @@ nsh> !CONFIG_DISABLE_ENVIRON && CONFIG_NFILE_DESCRIPTORS > 0 CONFIG_NSH_DISABLE_CD + + cmp + CONFIG_NFILE_DESCRIPTORS > 0 + CONFIG_NSH_DISABLE_CMP + cp CONFIG_NFILE_DESCRIPTORS > 0 @@ -3766,6 +3794,7 @@ mount -t vfat /dev/ram1 /tmp
  • base64enc
  • cat
  • cd
  • +
  • cmp
  • Command summaries
  • Command table
  • Conditional command execution