Webdav automation

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Webdav automation
# 1  
Old 09-16-2013
Webdav automation

I am required to automate file transfer to a Sharepoint Collection, I have failed in mounting the webdav as a file system using davfs2 so I am investigating Curl and Cadaver.

Cadaver is probably the easiest solution, I can successfully connect and transfer files. However can anyone advise how i can automate the connection as it always requires a username and password.

I have tried to create a netrc file in hom with the content:
machine http://url:port login=thisuser password=thispass

Unfortunately it always asks for a password when I attempt:
cadaver http:url:port

I also understand I could create a file and redirect it into Cadaver:

cadaver < thisfile.txt

Unfortunately I couldn't get this to work, it "seemed" to suggest it connected but no command did anything. I would prefer to get the netrc working.

I think the format of the netrc is correct, can anyone suggest why it might not be working as expected?
# 2  
Old 09-20-2013
It seems very like ftp, so try something like the
form? Or something like sshpass to apply the password?
# 3  
Old 09-20-2013
Apologies for not mentioning earlier,

I gave up with Cadaver as well and have scripted Curl. It works well, it has a few weird aspects but I can get it to do what I want relatively well.

Shame I didn't get the davfs mount to work properly though - you can close this thread though.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Web Development

Sending file to WebDav Server

Hi All, I am using a webdav server host name : abc.xyz.com.ak username : user123 password : password123 port : 80 I need to send files stored in my windows system to the server, any idea how to do it. I dont know how to create a url in linux for webdav server using details. (2 Replies)
Discussion started by: prakhar_dubey
2 Replies

2. Linux

Could not open the lock database - Apache WebDAV setup

I configured a WebDAV server using Apache. Here is my configuration: DAVLockDB /var/www/DAVLock.db <Location /majid> AllowOverride None Options +Indexes DAV On AuthUserFile /var/www/users.db AuthName Authentication AuthType Basic <Limit... (1 Reply)
Discussion started by: majid.merkava
1 Replies

3. Debian

webdav share per user ldap authentication

hi all, i have configured Apache with WEBDAV & my aim is sharing outlook calendars because we don't use M$ ExChange. From outlook i did a simple test & am able to share a calendar. I want to create share for each user & then authenticate against LDAP before they can publish their... (0 Replies)
Discussion started by: coolatt
0 Replies

4. OS X (Apple)

Permissions trouble with WebDav

Hello! I need some advice about using WebDav in Mac OS 10.5 My problem is that I mount a WebDav folder in the hard drive pointing to a webdav directory service running under apache (it's Alfresco, if you know it) but the permissions of this directory, when mounted, are only for the user who... (0 Replies)
Discussion started by: osksp
0 Replies

5. Shell Programming and Scripting

upload file to webdav server

Hi all i have a such question this is my shell script my script must upload file to webdav server ////////////////////////////////////////////////////////////////////////////////////////////////////////////// #!/bin/sh ###... (1 Reply)
Discussion started by: knut
1 Replies

6. UNIX for Dummies Questions & Answers

WebDav/davfs mounted file & directory names in all UPPERCASE

Hey, I have a WebDav directory mounted and everything seems fine except for one thing. All file/directory names appear in all UPPERCASE, when in actual fact they are lowercase on the remote machine. For example: foo/bar/baz.html on the remote host, appears on my local machine as... (0 Replies)
Discussion started by: MrMoney
0 Replies

7. Shell Programming and Scripting

Please help with Webdav transfer script

I need help on a script that syncs a directory with a webdav directory. For example I have the folders: ./upload/ ./upload/client ./upload/client/department ./upload/client2 ./upload/client2/department each of these folders contain docs that need to goto the webdav. also the client names... (1 Reply)
Discussion started by: brazen1445
1 Replies
Login or Register to Ask a Question