From 399e1a3981f3f5e8ed05fe4e89ea89f6bff38255 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 6 Sep 2008 00:16:09 +0000 Subject: [PATCH] Add get and put commands to NSH git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@880 42af7a65-404d-4744-a932-0658087f49c3 --- Documentation/NuttShell.html | 178 ++++++++++++++++++++++++++--------- Documentation/NuttX.html | 1 + 2 files changed, 136 insertions(+), 43 deletions(-) diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index c689cbb468..e9d363dc97 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -8,7 +8,7 @@

NuttShell (NSH)

-

Last Updated: September 3, 2008

+

Last Updated: September 5, 2008

@@ -113,127 +113,139 @@
- 2.7 Exit NSH (exit) + 2.7 Get File Via TFTP (get)
- 2.8 Show Usage Command Usage (help) + 2.8 Exit NSH (exit)
- 2.9 Show Network Configuration (ifconfig) + 2.9 Show Usage Command Usage (help)
- 2.10 List Directory Contents (ls) + 2.10 Show Network Configuration (ifconfig)
- 2.11 Access Memory (mb, mh, and mw) + 2.11 List Directory Contents (ls)
- 2.12 Show Memory Manager Status (mem) + 2.12 Access Memory (mb, mh, and mw)
- 2.13 Show Current Tasks and Threads (ps) + 2.13 Show Memory Manager Status (mem)
- 2.14 Create a Directory (mkdir) + 2.14 Show Current Tasks and Threads (ps)
- 2.15 Create a FAT Filesystem (mkfatfs) + 2.15 Create a Directory (mkdir)
- 2.16 Create a FIFO (mkfifo) + 2.16 Create a FAT Filesystem (mkfatfs)
- 2.17 Mount a File System (mount) + 2.17 Create a FIFO (mkfifo)
- 2.18 Check Network Peer (ping) + 2.18 Mount a File System (mount)
- 2.19 Show Current Working Directory (pwd) + 2.19 Check Network Peer (ping)
- 2.20 Remove a File (rm) + 2.20 Send File Via TFTP (put)
- 2.21 Remove a Directory (rmdir) + 2.21 Show Current Working Directory (pwd)
- 2.22 Set an Environment Variable (set) + 2.22 Remove a File (rm)
- 2.23 Execute an NSH Script (sh) + 2.23 Remove a Directory (rmdir)
- 2.24 Wait for Seconds (sleep) + 2.24 Set an Environment Variable (set)
- 2.25 Unmount a File System (umount) + 2.25 Execute an NSH Script (sh)
- 2.26 Unset an Environment Variable (unset) + 2.26 Wait for Seconds (sleep)
- 2.27 Wait for Microseconds (usleep) + 2.27 Unmount a File System (umount) + + + +
+ + 2.28 Unset an Environment Variable (unset) + + + +
+ + 2.29 Wait for Microseconds (usleep) @@ -621,7 +633,42 @@ exec <hex-address> + +
-

2.7 Exit NSH (exit)

+

2.7 Get File Via TFTP (get)

+
+ +Command Syntax:

+ +

+ Synopsis. + Copy the file at <remote-address> from the host whose IP address is + identified by <ip-address>. +

+

Other options:

+ + + + +
+

2.8 Exit NSH (exit)

@@ -640,7 +687,7 @@ exit
-

2.8 Show Usage Command Usage (help)

+

2.9 Show Usage Command Usage (help)

@@ -657,7 +704,7 @@ help
-

2.9 Show Network Configuration (ifconfig)

+

2.10 Show Network Configuration (ifconfig)

@@ -683,7 +730,7 @@ eth0 HWaddr 00:18:11:80:10:06
-

2.10 List Directory Contents (ls)

+

2.11 List Directory Contents (ls)

@@ -720,7 +767,7 @@ ls [-lRs] <dir-path>
-

2.11 Access Memory (mb, mh, and mw)

+

2.12 Access Memory (mb, mh, and mw)

@@ -774,7 +821,7 @@ nsh>
-

2.12 Show Memory Manager Status (mem)

+

2.13 Show Memory Manager Status (mem)

@@ -823,7 +870,7 @@ nsh>
-

2.13 Show Current Tasks and Threads (ps)

+

2.14 Show Current Tasks and Threads (ps)

@@ -849,7 +896,7 @@ nsh>
-

2.14 Create a Directory (mkdir)

+

2.15 Create a Directory (mkdir)

@@ -884,7 +931,7 @@ nsh>
-

2.15 Create a FAT Filesystem (mkfatfs)

+

2.16 Create a FAT Filesystem (mkfatfs)

@@ -904,7 +951,7 @@ mkfatfs <path>
-

2.16 Create a FIFO (mkfifo)

+

2.17 Create a FIFO (mkfifo)

@@ -942,7 +989,7 @@ nsh>
-

2.17 Mount a File System (mount)

+

2.18 Mount a File System (mount)

@@ -1009,7 +1056,7 @@ nsh>
-

2.18 Check Network Peer (ping)

+

2.19 Check Network Peer (ping)

@@ -1042,7 +1089,42 @@ nsh> + +
-

2.19 Show Current Working Directory (pwd)

+

2.20 Send File Via TFTP (put)

+
+ +
Command Syntax:

+ +

+ Synopsis. + Copy the file at <local-address> to the host whose IP address is + identified by <ip-address>. +

+

Other options:

+ + + + +
+

2.21 Show Current Working Directory (pwd)

@@ -1072,7 +1154,7 @@ nsh>
-

2.20 Remove a File (rm)

+

2.22 Remove a File (rm)

@@ -1106,7 +1188,7 @@ nsh>
-

2.21 Remove a Directory (rmdir)

+

2.23 Remove a Directory (rmdir)

@@ -1141,7 +1223,7 @@ nsh>
-

2.22 Set an Environment Variable (set)

+

2.24 Set an Environment Variable (set)

@@ -1167,7 +1249,7 @@ nsh>
-

2.23 Execute an NSH Script (sh)

+

2.25 Execute an NSH Script (sh)

@@ -1185,7 +1267,7 @@ sh <script-path>
-

2.24 Wait for Seconds (sleep)

+

2.26 Wait for Seconds (sleep)

@@ -1202,7 +1284,7 @@ sleep <sec>
-

2.25 Unmount a File System (umount)

+

2.27 Unmount a File System (umount)

@@ -1232,7 +1314,7 @@ nsh>
-

2.26 Unset an Environment Variable (unset)

+

2.28 Unset an Environment Variable (unset)

@@ -1258,7 +1340,7 @@ nsh>
-

2.27 Wait for Microseconds (usleep)

+

2.29 Wait for Microseconds (usleep)

@@ -1331,6 +1413,10 @@ usleep <usec> exit
+ + get + CONFIG_NET && CONFIG_NET_UDP && CONFIG_NFILE_DESCRIPTORS > 0 + help
@@ -1375,6 +1461,10 @@ usleep <usec> ps
+ + put + CONFIG_NET && CONFIG_NET_UDP && CONFIG_NFILE_DESCRIPTORS > 0 + pwd !CONFIG_DISABLE_ENVIRON && CONFIG_NFILE_DESCRIPTORS > 0 @@ -1602,6 +1692,7 @@ usleep <usec>
  • Environment Variables
  • exec
  • exit
  • +
  • get
  • Greeting
  • @@ -1623,6 +1714,7 @@ usleep <usec>
  • ping
  • Prompt
  • ps
  • +
  • put
  • pwd
  • PWD
  • Re-directed commands
  • diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html index d8edf1eb2c..2e936dee9e 100644 --- a/Documentation/NuttX.html +++ b/Documentation/NuttX.html @@ -1077,6 +1077,7 @@ nuttx-0.3.14 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> * Correct IP checksum calculation in ICMP and UDP message send logic. * NSH: Created an HTML document and a more detailed README file describing NSH. * Added basic TFTP client logic (netutils/tftpc). Untested as of initial check-in. + * NSH: Add get and put commands to support TFTP get and put operations. pascal-0.1.3 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>