Networking Forums

Networking Forums > Computer Networking > Linux Networking > Linux & MS Sharepoint server. How to mount?

Reply
Thread Tools Display Modes

Linux & MS Sharepoint server. How to mount?

 
 
Russ
Guest
Posts: n/a

 
      06-10-2005, 05:12 PM
I work in an off-site lab and am the sub-net admin here. When I was
running WinXP, I had set up my company's sharepoint server as a network
place so it would autmatically log in. I then used scripts to gather all
the databases, compact them and upload them to the sharepoint where our
IT dept has a script to do tape backups every night. The timing was
perfect. We closed up at 4pm, the compactor script ran at 4:30pm and
when it was done it deleted a lock file that triggered the IT's tape
script. The process takes hours which is why it runs on scripts after work.

One day, I was talking with the IT supervisor while she was imaging a
hard drive and jokingly asked if I could put Linux on my company PC. She
said, sure and when she saw my look of disbelief, she reiterated her
approval and said, "if you can get it working."

Well, I got it working and I've re-written my scripts to do the nightly
backup.

I have created a bash script to do the same thing except the automatic
uploading because I can't figure out how to "put" a file up on a
sharepoint server. Now, the compactor runs at 4:30 like before (and even
runs faster with a tighter compression), but I can't upload till the
next morning which means the tape backup is a day behind. This is not
good because the db's are mission critical. In addition, the lab's
network traffic is busy during the day, so this upload is eating up
bandwidth needed for work.

I need to upload a large (1GB+) archive via a script with automatic
login to a sharepoint server over the internet. The address of the
server is in the format of: https://sp.mycompany.com/backups/TIF_lab/.
Being able to mount it would be perfect because I could then delete the
lock file to trigger the tape script.

Is there a package or method that would allow this?

Russ King

 
Reply With Quote
 
 
 
 
Jim Hicks
Guest
Posts: n/a

 
      06-11-2005, 02:37 AM
Russ wrote:
> I work in an off-site lab and am the sub-net admin here. When I was
> running WinXP, I had set up my company's sharepoint server as a network
> place so it would autmatically log in. I then used scripts to gather all
> the databases, compact them and upload them to the sharepoint where our
> IT dept has a script to do tape backups every night. The timing was
> perfect. We closed up at 4pm, the compactor script ran at 4:30pm and
> when it was done it deleted a lock file that triggered the IT's tape
> script. The process takes hours which is why it runs on scripts after work.
>
> One day, I was talking with the IT supervisor while she was imaging a
> hard drive and jokingly asked if I could put Linux on my company PC. She
> said, sure and when she saw my look of disbelief, she reiterated her
> approval and said, "if you can get it working."
>
> Well, I got it working and I've re-written my scripts to do the nightly
> backup.
>
> I have created a bash script to do the same thing except the automatic
> uploading because I can't figure out how to "put" a file up on a
> sharepoint server. Now, the compactor runs at 4:30 like before (and even
> runs faster with a tighter compression), but I can't upload till the
> next morning which means the tape backup is a day behind. This is not
> good because the db's are mission critical. In addition, the lab's
> network traffic is busy during the day, so this upload is eating up
> bandwidth needed for work.
>
> I need to upload a large (1GB+) archive via a script with automatic
> login to a sharepoint server over the internet. The address of the
> server is in the format of: https://sp.mycompany.com/backups/TIF_lab/.
> Being able to mount it would be perfect because I could then delete the
> lock file to trigger the tape script.
>
> Is there a package or method that would allow this?
>
> Russ King
>

You might be able to use expect. It is available from:

http://expect.nist.gov/

It is a slick interactive scripting language for ftp, rlogin, anything
that expects a response from an input.
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      06-11-2005, 06:41 AM
In comp.os.linux.networking Russ <(E-Mail Removed)>:
[..]

> I need to upload a large (1GB+) archive via a script with automatic
> login to a sharepoint server over the internet. The address of the
> server is in the format of: https://sp.mycompany.com/backups/TIF_lab/.


Try:
man curl

Curl supports https and IIRC uploading.

[..]

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 69: knot in cables caused data stream to become
twisted and kinked
 
Reply With Quote
 
Russ
Guest
Posts: n/a

 
      06-13-2005, 02:00 PM
Michael Heiming wrote:
> In comp.os.linux.networking Russ <(E-Mail Removed)>:
> [..]
>
>
>>I need to upload a large (1GB+) archive via a script with automatic
>>login to a sharepoint server over the internet. The address of the
>>server is in the format of: https://sp.mycompany.com/backups/TIF_lab/.

>
>
> Try:
> man curl
>
> Curl supports https and IIRC uploading.
>
> [..]
>


According to the curl man page, if I supply no user/password, then it
should ask me...

-u/--user <userassword>
Specify user and password to use when fetching. See
README.curl for detailed examples of how to use
this. If no password is specified, curl will ask
for it interactively.

However, it doesn't ask and even supplying the user/password results in:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>You are not authorized to view this page</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<STYLE type="text/css">
BODY { font: 8pt/12pt verdana }
H1 { font: 13pt/15pt verdana }
H2 { font: 8pt/12pt verdana }
A:link { color: red }
A:visited { color: maroon }
</STYLE>
</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>

<h1>You are not authorized to view this page</h1>
You do not have permission to view this directory or page using the
credentialsthat you supplied because your Web browser is sending a
WWW-Authenticate headerfield that the Web server is not configured to
accept.
<hr>
<p>Please try the following:</p>
<ul>
<li>Contact the Web site administrator if you believe you should be able
to view this directory or page.</li>
<li>Click the <a href="javascript:location.reload()">Refresh</a> button
to try again with different credentials.</li>
</ul>
<h2>HTTP Error 401.2 - Unauthorized: Access is denied due to server
configuration.<br>Internet Information Services (IIS)</h2>
<hr>
<p>Technical Information (for support personnel)</p>
<ul>
<li>Go to <a
href="http://go.microsoft.com/fwlink/?linkid=8180">Microsoft Product
Support Services</a> and perform a title search for the words
<b>HTTP</b> and<b>401</b>.</li>
<li>Open <b>IIS Help</b>, which is accessible in IIS Manager (inetmgr),
and search for topics titled <b>About Security</b>,
<b>Authentication</b>, and<b>About Custom Error Messages</b>.</li>
</ul>

</TD></TR></TABLE></BODY></HTML>
 
Reply With Quote
 
Russ
Guest
Posts: n/a

 
      06-13-2005, 02:03 PM
Jim Hicks wrote:
> Russ wrote:
>
>> Is there a package or method that would allow this?
>>
>> Russ King
>>

> You might be able to use expect. It is available from:
>
> http://expect.nist.gov/
>
> It is a slick interactive scripting language for ftp, rlogin, anything
> that expects a response from an input.



In order to use that, I need a console based browser that supports SSL
and is able to login to a WebDAV server. Links2, Lynx and w3m are unable.

RK
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      06-13-2005, 06:45 PM
In comp.os.linux.networking Russ <(E-Mail Removed)>:
> Michael Heiming wrote:
>> In comp.os.linux.networking Russ <(E-Mail Removed)>:
>> [..]
>>
>>
>>>I need to upload a large (1GB+) archive via a script with automatic
>>>login to a sharepoint server over the internet. The address of the
>>>server is in the format of: https://sp.mycompany.com/backups/TIF_lab/.

>>
>>
>> Try:
>> man curl
>>
>> Curl supports https and IIRC uploading.
>>
>> [..]
>>


> According to the curl man page, if I supply no user/password, then it
> should ask me...


> -u/--user <userassword>
> Specify user and password to use when fetching. See
> README.curl for detailed examples of how to use
> this. If no password is specified, curl will ask
> for it interactively.


> However, it doesn't ask and even supplying the user/password results in:


Sure, curl is trying to do basic authentication, but your target
doesn't use it:

> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

[..]
> href="http://go.microsoft.com/fwlink/?linkid=8180">Microsoft Product
> Support Services</a> and perform a title search for the words
> <b>HTTP</b> and<b>401</b>.</li>
> <li>Open <b>IIS Help</b>, which is accessible in IIS Manager (inetmgr),
> and search for topics titled <b>About Security</b>,
> <b>Authentication</b>, and<b>About Custom Error Messages</b>.</li>


You need to find out *first* what kind of authentication the page
requires, then try searching freshmeat.net/google if there's any
tool able to handle this available.

In any case you can work out your own script, perl would be my
first choice, there are perl modules helping to handle filling
out forms, if this is all what's used.

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 103: operators on strike due to broken coffee
machine
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount of AIX jfs2 filesystem on Linux server extremely slow Govind Linux Networking 0 07-23-2008 10:02 PM
Windows Server 2003 with Exchange Server and SharePoint Services 3 SQL, Access, FrontPage, IIS, ODBC, ASP Windows Networking 0 03-09-2007 03:15 PM
Windows 2003 Server with Exchange and Sharepoint Services 2.0 SQL, Access, FrontPage, IIS, ODBC, ASP Windows Networking 0 02-26-2007 11:06 PM
NFS mount won't mount at boot, but mount -a works fine. BT Linux Networking 2 09-23-2004 09:37 PM
OSX NFS server, Linux client can't read mount jb_is_not@home.yet Linux Networking 0 09-04-2004 12:43 AM



1 2 3 4 5 6 7 8 9 10 11