BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help
Not What You Meant?  There are 35 definitions for Fish.

Files transferred over shell protocol

Print-Friendly
About 1 pages (379 words)

Bookmark and Share Know this topic well? Help others and get FREE products!

FIles transferred over SHell protocol is a protocol to use SSH or RSH to transfer files between computers and manage remote files. The advantage of FISH is that all it requires on the server-side is an SSH or RSH implementation, Unix shell and a set of standard Unix utilities like ls, cat or dd. Optionally, there can be a special FISH server program (called start_fish_server) on the server, which executes FISH commands instead of Unix shell and thus speeds up operations. The protocol was designed by Pavel Machek in 1998 for Midnight Commander.

Contents

Protocol messages

Client sends text requests of the following form:

#FISH_COMMAND arguments...
equivalent shell commands,
which may be multi-line

Fish commands are all defined, shell equivalents may vary. Fish commands always have priority: the server is expected to execute a fish command if it understands it. If it does not, however, it can try and execute a shell command. When there is no special server program, Unix shell ignores the fish command as a comment and executes the equivalent shell command(s). Server replies are multi-line, but always end with

### xyz<optional text>

line. ### is a prefix to mark this line, xyz is the return code. Return codes are superset to those used in ftp. The codes 000 and 001 are special, their meaning depends on presence of server output before the end line.

Session initiation

The client initiates SSH or RSH connection with echo FISH:;/bin/sh as the command executed on remote machine. This should make it possible for the server to distinguish FISH connections from normal RSH or SSH. The first two commands sent to the server are FISH and VER to negotiate FISH protocol, its version and extensions.

#FISH
echo; start_fish_server; echo '### 200'
#VER 0.0.2 <feature1> <feature2> <...>
echo '### 000'

The server may reply to VER command with a lines like

VER 0.0.0 <feature2> <...>
### 200

which indicates supported version of the FISH protocol and supported extensions.

Implementations

External links

View More Summaries on Files transferred over shell protocol
 
Ask any question on Files transferred over shell protocol and get it answered FAST!
Answer questions in BookRags Q&A and earn points toward
discounted or even FREE Study Guides and other BookRags products!
Learn more about BookRags Q&A
Copyrights
Files transferred over shell protocol from Wíkipedia. ©2006 by Wíkipedia. Licensed under the GNU Free Documentation License. View a list of authors or edit this article.

Article Navigation
Join BookRagslearn moreJoin BookRags




About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy