Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by frozenwithjoy (Priest)
on Aug 15, 2013 at 01:13 UTC ( #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
Node Status?
node history
Node Type: note [id://1049495]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2016-12-07 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (131 votes). Check out past polls.