Zum Inhalt springen

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…“
 
K Textersetzung - „line>“ durch „line copy>“
 
(110 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
=== cadaver ===
'''cadaver''' - Befehlszeilenschnittstelle für WebDAV
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/ 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:
== Beschreibung ==
; Funktionen
* Hochladen und Herunterladen von Dateien
* Anzeige auf dem Bildschirm
* Namespace-Operationen (Verschieben/Kopieren)
* Erstellen und Löschen von Sammlungen
* Sperrvorgänge
* Kann für automatisierte und skriptbasierte Kommandozeilenfunktionen, wie beispielsweise das Remote-Kopieren, nützlich sein


sudo apt-get install cadaver
== Installation ==
<syntaxhighlight lang="bash" highlight="1" line copy>
sudo apt install cadaver
</syntaxhighlight>


WebDAV Client für Unix. Unterstützt: Upload, Download, namespace Operationen, (move/copy), Entwurf und Entfernung von Collections, locking Operationen
== Aufruf ==
<syntaxhighlight lang="bash" highlight="1" line copy>
cadaver https://dav.example.com/
</syntaxhighlight>


==== cadaver ====
=== Optionen ===
Section: User Manuals (1)
{| class="wikitable sortable options gnu"
|-
! Unix !! GNU !! Parameter !! Beschreibung
|-
| -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 || --version || || Display version information and exit
|-
| -h || --help || || Display this help message and exit
|}


===== NAME =====
=== Parameter ===
cadaver - A command-line WebDAV client for Unix.


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


===== DESCRIPTION =====
=== Exit-Status ===
cadaver&nbsp;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&nbsp;[man:/ftp(1) ftp](1) client and the Samba Project's&nbsp;[man:/smbclient(1) smbclient](1). A user familiar with these tools should be quite comfortable with cadaver.
== Anwendung ==
; Connects to the server zope.example.com using port 8022, opening the collection "/Users/fred/"
<syntaxhighlight lang="bash" highlight="1" line copy>
cadaver https://zope.example.com:8022/Users/fred/
</syntaxhighlight>


cadaver&nbsp;supports automatically logging in to servers requiring authentication via a .netrc file (similar to&nbsp;[man:/ftp(1) ftp](1) - see section "THE .netrc FILE" below).
; Connects to a server called secure.example.com using SSL
 
<syntaxhighlight lang="bash" highlight="1" line copy>
===== OPTIONS =====
cadaver https://secure.example.com/
-t, --tolerant
</syntaxhighlight>
 
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&nbsp;~/.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
=== Kommandos ===
{| class="wikitable sortable options"
|-
! Option!!Beschreibung
|-
|-
| ls [path] || List contents of current [or other] collection
|-
| cd path || Change to specified collection
|-
| pwd || Display name of current collection
|-
| 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 session
|-
| help [command] || Display help message
|}


Copy resource(s) from source to dest
== Konfiguration ==
=== Dateien ===
{| class="wikitable options"
|-
! Datei !! Beschreibung
|-
| ~/.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
|}


move source... dest
; ~/.netrc
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


Move resource(s) from source to dest
{| class="wikitable sortable options"
|-
! Option !! Beschreibung
|-
| 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
|}


lock resource


Lock given resource
<noinclude>


unlock resource
== Anhang ==
=== Siehe auch ===
* [[ftp]](1)
* [[smbclient]](1)
{{Special:PrefixIndex/{{BASEPAGENAME}}/}}


Unlock given resource
=== Dokumentation ===
 
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&nbsp;~/.netrc&nbsp;may be used to automatically login to a server requiring authentication. The following tokens (separated by spaces, tabs or newlines) may be used:
 
machine&nbsp;host
 
Identify a remote machine&nbsp;host&nbsp;which is compared with the hostname given on the command line or as an argument to the&nbsp;open&nbsp;command. Any subsequent tokens up to the end of file or the nextmachine&nbsp;or&nbsp;default&nbsp;token are associated with this entry.
 
default
 
This is equivalent to the&nbsp;machine&nbsp;token but matches any hostname. Only one&nbsp;default&nbsp;token may be used and it must be after all&nbsp;machine&nbsp;tokens.
 
login&nbsp;username
 
Specifies the username to use when logging in to the remote machine.
 
password&nbsp;string&nbsp;passwd&nbsp;string
 
Specifies the password to use when logging in to the remote machine.
 
Any other tokens (as described in&nbsp;[man:/ftp(1) ftp](1)) are ignored.
 
===== EXAMPLES =====
cadaver&nbsp;[http://dav.example.com/ http://dav.example.com/]
 
Connects to the server myserver.example.com, opening the root collection.
 
cadaver&nbsp;[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/".
 
cadaver https://secure.example.com/


Connects to a server called secure.example.com using SSL.
; Man-Page


===== FILES =====
; Info-Pages
~/.cadaverrc


Individual user settings that can override cadaver defaults and to script cadaver. Can be changed by the "--rcfile" option.
=== Links ===
==== Projekt ====
# https://www.WebDAV.org/cadaver/


~/.netrc
==== Weblinks ====


Login and initialization information used by the auto-login process. See section "THE .netrc FILE" for details.
{{DEFAULTSORT:cadaver}}
{{DISPLAYTITLE:cadaver}}


===== AUTHOR =====
[[Kategorie:Netzwerk/Befehl]]
Joe Orton <[mailto:cadaver@webdav.org cadaver@webdav.org]>
[[Kategorie:Linux/Befehl]]
[[Kategorie:WebDAV]]


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

Aktuelle Version vom 11. Mai 2025, 13:40 Uhr

cadaver - Befehlszeilenschnittstelle für WebDAV

Beschreibung

Funktionen
  • Hochladen und Herunterladen von Dateien
  • Anzeige auf dem Bildschirm
  • Namespace-Operationen (Verschieben/Kopieren)
  • Erstellen und Löschen von Sammlungen
  • Sperrvorgänge
  • Kann für automatisierte und skriptbasierte Kommandozeilenfunktionen, wie beispielsweise das Remote-Kopieren, nützlich sein

Installation

sudo apt install cadaver

Aufruf

cadaver https://dav.example.com/

Optionen

Unix GNU Parameter Beschreibung
-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 --version Display version information and exit
-h --help Display this help message and exit

Parameter

Umgebungsvariablen

Exit-Status

Anwendung

Connects to the server zope.example.com using port 8022, opening the collection "/Users/fred/"
cadaver https://zope.example.com:8022/Users/fred/
Connects to a server called secure.example.com using SSL
cadaver https://secure.example.com/

Kommandos

Option Beschreibung
ls [path] List contents of current [or other] collection
cd path Change to specified collection
pwd Display name of current collection
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
-] 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 session
help [command] Display help message

Konfiguration

Dateien

Datei Beschreibung
~/.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
~/.netrc

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

Option Beschreibung
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



Anhang

Siehe auch


Dokumentation

Man-Page
Info-Pages

Links

Projekt

  1. https://www.WebDAV.org/cadaver/

Weblinks