Sponsored Content
Full Discussion: Webdav automation
Top Forums Shell Programming and Scripting Webdav automation Post 302853855 by mcclunyboy on Monday 16th of September 2013 08:42:20 AM
Old 09-16-2013
Webdav automation

Hi,
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:
Code:
machine http://url:port login=thisuser password=thispass

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

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

Code:
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?
 

7 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

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. 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

6. 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

7. 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
MooseX::AttributeHelpers::Collection::List(3pm) 	User Contributed Perl Documentation	   MooseX::AttributeHelpers::Collection::List(3pm)

NAME
MooseX::AttributeHelpers::Collection::List - list attribute type SYNOPSIS
package Stuff; use Moose; use MooseX::AttributeHelpers; has 'options' => ( metaclass => 'Collection::List', is => 'ro', isa => 'ArrayRef[Int]', default => sub { [] }, provides => { map => 'map_options', grep => 'filter_options', } ); DESCRIPTION
This module provides an List attribute which provides a number of list operations. See MooseX::AttributeHelpers::MethodProvider::List for more details. METHODS
meta method_provider has_method_provider helper_type BUGS
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT. AUTHOR
Stevan Little <stevan@iinteractive.com> COPYRIGHT AND LICENSE
Copyright 2007-2009 by Infinity Interactive, Inc. <http://www.iinteractive.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-01-02 MooseX::AttributeHelpers::Collection::List(3pm)
All times are GMT -4. The time now is 11:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy