Print this article Edit this article

Using Cadaver with Zope

"cadaver is a command-line WebDAV client for Unix. It supports file upload, download, on-screen display, namespace operations (move/copy), collection creation and deletion, and locking operations." WebDAV.org

Using Cadaver

Starting Cadaver

Cadaver is available at /usr/opt/bin/cadaver on ECN Solaris systems. If /usr/opt/bin/ is in your path you can start cadaver by typing cadaver and pressing enter at a shell prompt.

If /usr/opt/bin/ is not in your path you can start cadaver by typing /usr/opt/bin/cadaver at a shell prompt, or follow instructions on adjusting your path for your shell.

Built in Help

Once cadaver is running you are presented with a prompt:

dav:!>

Cadaver has built in help which can be accessed by typing help at the prompt.

Opening a connection

At the cadaver prompt type open https://engineering.purdue.edu/. You will be prompted for a Username and Password, use your Purdue Directory Username and Password.

dav:!> open https://engineering.purdue.edu/
Looking up hostname... Connecting to server... connected.
Using secure connection: TLSv1
Connecting to server... connected.
Using secure connection: TLSv1
Authentication required for Zope on server `engineering.purdue.edu`:
Username: johndoe
Password:
Connecting to server... connected.
Using secure connection: TLSv1
dav:/>

Common command in Cadaver

  • ls - Get a directory listing from the server
  • lls - Get a directory listing from the local machine
  • cd - Change directories on the server
  • lcd - Change directories on the local machine
  • put - Put a single file onto the server
  • get - Get a single file from the server
  • mput - Put multiple files onto the server
  • mget - Get multiple files from the server
  • edit - Edit a file on the server
  • close - Close the current connection
  • quit - Exit the program

Sample cadaver session

This sample session connects changes to a personal folder and puts two images onto the Web Cluster.

dav:!> open https://engineering.purdue.edu/
Looking up hostname... Connecting to server... connected.
Using secure connection: TLSv1
Connecting to server... connected.
Using secure connection: TLSv1
Authentication required for Zope on server `engineering.purdue.edu`:
Username: brinegar
Password:
Connecting to server... connected.
Using secure connection: TLSv1
dav:/> cd people/brian.r.brinegar.1/
Connecting to server... connected.
Using secure connection: TLSv1
dav:/people/brian.r.brinegar.1/> ls
Listing collection `/people/brian.r.brinegar.1/': (reconnecting...done) succeeded.
Coll: Photos 0 Jun 7 19:13
index_html 149 Jun 14 19:39
dav:/people/brian.r.brinegar.1/> lls
Photo1.jpg Photo2.jpg
dav:/people/brian.r.brinegar.1/> mput *.jpg
[Matching... 2 matches.]
Uploading Photo1.jpg to `/people/brian.r.brinegar.1/Photo1.jpg':
(reconnecting...done)
Progress: [=============================>] 100.0% of 18481 bytes succeeded.
Uploading Photo2.jpg to `/people/brian.r.brinegar.1/Photo2.jpg':
(reconnecting...done)
Progress: [=============================>] 100.0% of 16746 bytes succeeded.
dav:/people/brian.r.brinegar.1/> ls
Listing collection `/people/brian.r.brinegar.1/': (reconnecting...done) succeeded.
Coll: Photos 0 Jun 7 19:13
index_html 149 Jun 14 19:39
Photo1.jpg 18481 Jun 14 17:20
Photo2.jpg 16746 Jun 14 17:20
dav:/people/brian.r.brinegar.1/> close
Connection to `engineering.purdue.edu' closed.
dav:!> quit

Last Modified: Dec 19, 2016 11:12 am US/Eastern
Created: Nov 6, 2007 2:13 pm US/Eastern by admin
JumpURL:


Categories