Cadaver: Unterschied zwischen den Versionen

Aus Foxwiki
Die Seite wurde neu angelegt: „=== cadaver === cadaver is a command-line WebDAV client for Unix. It supports file upload, download, on-screen display, namespace operations (move/copy), colle…“
 
Keine Bearbeitungszusammenfassung
Zeile 4: Zeile 4:
Cadaver is a command-line interface for WebDAV. It can be useful for automated and script-based command-line functions, such a remote copying. Install:  
Cadaver is a command-line interface for WebDAV. It can be useful for automated and script-based command-line functions, such a remote copying. Install:  


sudo apt-get install cadaver
#apt install cadaver


WebDAV Client für Unix. Unterstützt: Upload, Download, namespace Operationen, (move/copy), Entwurf und Entfernung von Collections, locking Operationen  
WebDAV Client für Unix. Unterstützt: Upload, Download, namespace Operationen, (move/copy), Entwurf und Entfernung von Collections, locking Operationen  
Zeile 15: Zeile 15:


===== SYNOPSIS =====
===== SYNOPSIS =====
cadaver [-trp[-r file][-p host[:port]]
cadaver [-trp[-r file][-p host[:port]]][-V][-h] http://hostname[:port]/path
][-V][-h] http://hostname[:port]/path


===== DESCRIPTION =====
===== DESCRIPTION =====
Zeile 26: Zeile 25:


===== OPTIONS =====
===== OPTIONS =====
-t, --tolerant
-t, --tolerant


Allow cd/open into non-WebDAV enabled collection; use if the server or proxy server has WebDAV compliance problems.
Allow cd/open into non-WebDAV enabled collection; use if the server or proxy server has WebDAV compliance problems.


-r, --rcfile=file
-r, --rcfile=file


Use this rcfile rather than the default of ~/.cadaverrc
Use this rcfile rather than the default of ~/.cadaverrc


-p, --proxy=host[:port]
-p, --proxy=host[:port]


Connect using the proxy host "host" and optional proxy port "port".
Connect using the proxy host "host" and optional proxy port "port".


-V, --versio
-V, --versio


Display version information and exit.
Display version information and exit.


-h, --help
-h, --help


Display this help message and exit.
Display this help message and exit.


===== COMMAND REFERENCE =====
===== COMMAND REFERENCE =====
ls [path]
ls [path]


List contents of current [or other] collectio
List contents of current [or other] collectio


cd path
cd path


Change to specified collectio
Change to specified collectio


pwd
pwd


Display name of current collectio
Display name of current collectio


put local [remote]
put local [remote]


Upload local file
Upload local file


get remote [local]
get remote [local]


Download remote resource
Download remote resource


mget remote...
mget remote...


Download many remote resources
Download many remote resources


mput local...
mput local...


Upload many local files
Upload many local files


edit resource
edit resource


Edit given resource
Edit given resource


less remote...
less remote...


Display remote resource through pager
Display remote resource through pager


mkcol remote...
mkcol remote...


Create remote collection(s)
Create remote collection(s)


cat remote...
cat remote...


Display remote resource(s)
Display remote resource(s)


delete remote...
delete remote...


Delete non-collection resource(s)
Delete non-collection resource(s)


rmcol remote...
rmcol remote...


Delete remote collections and ALL contents
Delete remote collections and ALL contents


copy source... dest
copy source... dest


Copy resource(s) from source to dest
Copy resource(s) from source to dest


move source... dest
move source... dest


Move resource(s) from source to dest
Move resource(s) from source to dest


lock resource
lock resource


Lock given resource
Lock given resource


unlock resource
unlock resource


Unlock given resource
Unlock given resource


discover resource
discover resource


Display lock information for resource
Display lock information for resource


steal resource
steal resource


Steal lock token for resource
Steal lock token for resource


showlocks
showlocks


Display list of owned locks
Display list of owned locks


propnames res
propnames res


Names of properties defined on resource
Names of properties defined on resource


chexec [+|-] remote
chexec [+|-] remote


Change isexecutable property of resource
Change isexecutable property of resource


propget res [propname]
propget res [propname]


Retrieve properties of resource
Retrieve properties of resource


propset res propname value
propset res propname value


Set property on resource
Set property on resource


set [option] [value]
set [option] [value]


Set an option, or display options
Set an option, or display options


open URL
open URL


Open connection to given URL
Open connection to given URL


close
close


Close current connectio
Close current connectio


quit
quit


Exit program
Exit program


unset [option] [value]
unset [option] [value]


Unsets or clears value from option.
Unsets or clears value from option.


lcd [directory]
lcd [directory]


Change local working directory
Change local working directory


lls [options]
lls [options]


Display local directory listing
Display local directory listing


lpwd
lpwd


Print local working directory
Print local working directory


logout
logout


Logout of authentication sessio
Logout of authentication sessio


help [command]
help [command]


Display help message
Display help message
Zeile 186: Zeile 185:
The file ~/.netrc may be used to automatically login to a server requiring authentication. The following tokens (separated by spaces, tabs or newlines) may be used:
The file ~/.netrc may be used to automatically login to a server requiring authentication. The following tokens (separated by spaces, tabs or newlines) may be used:


machine host
machine host


Identify a remote machine host which is compared with the hostname given on the command line or as an argument to the open command. Any subsequent tokens up to the end of file or the nextmachine or default token are associated with this entry.
Identify a remote machine host which is compared with the hostname given on the command line or as an argument to the open command. Any subsequent tokens up to the end of file or the nextmachine or default token are associated with this entry.


default
default


This is equivalent to the machine token but matches any hostname. Only one default token may be used and it must be after all machine tokens.
This is equivalent to the machine token but matches any hostname. Only one default token may be used and it must be after all machine tokens.


login username
login username


Specifies the username to use when logging in to the remote machine.
Specifies the username to use when logging in to the remote machine.


password string passwd string
password string passwd string


Specifies the password to use when logging in to the remote machine.
Specifies the password to use when logging in to the remote machine.
Zeile 205: Zeile 204:


===== EXAMPLES =====
===== EXAMPLES =====
cadaver [http://dav.example.com/ http://dav.example.com/]
cadaver [http://dav.example.com/ http://dav.example.com/]


Connects to the server myserver.example.com, opening the root collection.
Connects to the server myserver.example.com, opening the root collection.


cadaver [http://zope.example.com:8022/Users/fred/ http://zope.example.com:8022/Users/fred/]
cadaver [http://zope.example.com:8022/Users/fred/ http://zope.example.com:8022/Users/fred/]


Connects to the server zope.example.com using port 8022, opening the collection "/Users/fred/".
Connects to the server zope.example.com using port 8022, opening the collection "/Users/fred/".


cadaver https://secure.example.com/
cadaver https://secure.example.com/


Connects to a server called secure.example.com using SSL.
Connects to a server called secure.example.com using SSL.


===== FILES =====
===== FILES =====
~/.cadaverrc
~/.cadaverrc


Individual user settings that can override cadaver defaults and to script cadaver. Can be changed by the "--rcfile" option.
Individual user settings that can override cadaver defaults and to script cadaver. Can be changed by the "--rcfile" option.


~/.netrc
~/.netrc


Login and initialization information used by the auto-login process. See section "THE .netrc FILE" for details.
Login and initialization information used by the auto-login process. See section "THE .netrc FILE" for details.
===== AUTHOR =====
Joe Orton <[mailto:cadaver@webdav.org cadaver@webdav.org]>


===== SEE ALSO =====
===== SEE ALSO =====
[man:/ftp(1) ftp](1),&nbsp;[man:/smbclient(1) smbclient](1)
[man:/ftp(1) ftp](1),&nbsp;[man:/smbclient(1) smbclient](1)

Version vom 16. November 2020, 19:02 Uhr

cadaver

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. * http://www.WebDAV.org/cadaver/

Cadaver is a command-line interface for WebDAV. It can be useful for automated and script-based command-line functions, such a remote copying. Install:

#apt install cadaver

WebDAV Client für Unix. Unterstützt: Upload, Download, namespace Operationen, (move/copy), Entwurf und Entfernung von Collections, locking Operationen

cadaver

Section: User Manuals (1)

NAME

cadaver - A command-line WebDAV client for Unix.

SYNOPSIS
cadaver [-trp[-r file][-p host[:port]]][-V][-h] http://hostname[:port]/path
DESCRIPTION

cadaver supports file upload, download, on-screen display, namespace operations (move and copy), collection creation and deletion, and locking operations.

Its operation is similar to the standard BSD [man:/ftp(1) ftp](1) client and the Samba Project's [man:/smbclient(1) smbclient](1). A user familiar with these tools should be quite comfortable with cadaver.

cadaver supports automatically logging in to servers requiring authentication via a .netrc file (similar to [man:/ftp(1) ftp](1) - see section "THE .netrc FILE" below).

OPTIONS
-t, --tolerant

Allow cd/open into non-WebDAV enabled collection; use if the server or proxy server has WebDAV compliance problems.

-r, --rcfile=file

Use this rcfile rather than the default of ~/.cadaverrc

-p, --proxy=host[:port]

Connect using the proxy host "host" and optional proxy port "port".

-V, --versio

Display version information and exit.

-h, --help

Display this help message and exit.

COMMAND REFERENCE
ls [path]

List contents of current [or other] collectio

cd path

Change to specified collectio

pwd

Display name of current collectio

put local [remote]

Upload local file

get remote [local]

Download remote resource

mget remote...

Download many remote resources

mput local...

Upload many local files

edit resource

Edit given resource

less remote...

Display remote resource through pager

mkcol remote...

Create remote collection(s)

cat remote...

Display remote resource(s)

delete remote...

Delete non-collection resource(s)

rmcol remote...

Delete remote collections and ALL contents

copy source... dest

Copy resource(s) from source to dest

move source... dest

Move resource(s) from source to dest

lock resource

Lock given resource

unlock resource

Unlock given resource

discover resource

Display lock information for resource

steal resource

Steal lock token for resource

showlocks

Display list of owned locks

propnames res

Names of properties defined on resource

chexec [+|-] remote

Change isexecutable property of resource

propget res [propname]

Retrieve properties of resource

propset res propname value

Set property on resource

set [option] [value]

Set an option, or display options

open URL

Open connection to given URL

close

Close current connectio

quit

Exit program

unset [option] [value]

Unsets or clears value from option.

lcd [directory]

Change local working directory

lls [options]

Display local directory listing

lpwd

Print local working directory

logout

Logout of authentication sessio

help [command]

Display help message

THE .netrc FILE

The file ~/.netrc may be used to automatically login to a server requiring authentication. The following tokens (separated by spaces, tabs or newlines) may be used:

machine host

Identify a remote machine host which is compared with the hostname given on the command line or as an argument to the open command. Any subsequent tokens up to the end of file or the nextmachine or default token are associated with this entry.

default

This is equivalent to the machine token but matches any hostname. Only one default token may be used and it must be after all machine tokens.

login username

Specifies the username to use when logging in to the remote machine.

password string passwd string

Specifies the password to use when logging in to the remote machine.

Any other tokens (as described in [man:/ftp(1) ftp](1)) are ignored.

EXAMPLES
cadaver http://dav.example.com/

Connects to the server myserver.example.com, opening the root collection.

cadaver http://zope.example.com:8022/Users/fred/

Connects to the server zope.example.com using port 8022, opening the collection "/Users/fred/".

cadaver https://secure.example.com/

Connects to a server called secure.example.com using SSL.

FILES
~/.cadaverrc

Individual user settings that can override cadaver defaults and to script cadaver. Can be changed by the "--rcfile" option.

~/.netrc

Login and initialization information used by the auto-login process. See section "THE .netrc FILE" for details.

SEE ALSO

[man:/ftp(1) ftp](1), [man:/smbclient(1) smbclient](1)