Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to upload file from Linux to Sharepoint using Perl

by frozenwithjoy (Priest)
on Aug 15, 2013 at 01:13 UTC ( [id://1049495]=note: print w/replies, xml ) Need Help??


in reply to How to upload file from Linux to Sharepoint using Perl

Seems like it would be easier to just create a cron job to schedule a daily curl call.

To edit your cron jobs, use: crontab -e. Adding something like the following should upload your file every morning at 5AM:

00 5 * * * /usr/bin/curl --ntlm -u <your Active-Directory-Domain>/<you +r-domain-username> -T /path/to/xyz.txt http://sharepoint.url.com/doc/ +library/dir/

Replies are listed 'Best First'.
Re^2: How to upload file from Linux to Sharepoint using Perl
by vvrao_2000 (Initiate) on Feb 22, 2016 at 19:53 UTC
    curl --ntlm -u domain/userid:passwd -T <file> "sharepoint URL"
Re^2: How to upload file from Linux to Sharepoint using Perl
by Anonymous Monk on Feb 22, 2016 at 19:39 UTC
    simpe one curl --ntlm -u domain/userid:passwd -T <file> "sharepoint URL"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1049495]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-24 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found