1

I have to write a script on Lotus Server which is on Windows server to save a csv file on UNIX server. I and Unix server path requires authentication. So can somebody help me or suggest me how to do it?

Thanks in advance.

Siddhartha

Siddhartha
  • 11
  • 1

4 Answers4

0

You need to provide more details. Presuming you can access the Unix folder from Windows Explorer, map the drive and let Windows store the password. Then access it through the mapped drive letter.

LotusScript can't write to UNC locations, so you need the drive letter.

That file will be probably picked up by another program. CVS is the worst approach. You could offer to write to a Web Service or provide one.

Update
On Unix "access" more often than not doesn't mean a CIFS (a.k.a Windows share) access, but SSH (or FTP). For SSH you would want to:

  • configure SSH Keys, so you actually don't need username/password any more
  • use a Java library as asked on Stackoverflow before (or an alternative)
  • you also could write the file to a temp directory and call a cmd file for the copy operation
  • With a little care (make the cmd file configurable) the stuff will work when moving your Domino to Unix/Linux too

Let us know how it goes

Community
  • 1
  • 1
stwissel
  • 20,110
  • 6
  • 54
  • 101
  • problem is the client doesn't allow webservices for connecting and therefore no other option but to provide data in CSV file. As for mapping I can map folder of Unix server is possible than I will be able to work it out. Let me try it tomorrow my morning and come back to you with results. – Siddhartha Jul 04 '13 at 15:50
  • If you go the mapped drive route, you may have issues if your Domino server is running as a service. – Simon O'Doherty Jul 04 '13 at 17:04
  • Well the server is mostly running as service but not 100% sure! – Siddhartha Jul 05 '13 at 13:29
  • Unix boxes often only give you ssh access, so you would need to run scp. – stwissel Jul 05 '13 at 13:36
0

Could setting up a FTP server on Domino and accessing this from your UNIX server be an option ?

Mindoo FTP server

0

I once resolved this in two steps: 1. Save the file to a temporary directory on the D omino server using LotusScript 2. Create a scheduled taks on the windowd serverr to copy the file to the second server

Advantages: You can specify any user in the scheduled task and you don`t have to care about accessibility of the other server.

Disadvantages Two separate processes.

Hope that helos. Michael

Michael Ruhnau
  • 1,399
  • 1
  • 7
  • 15
  • Well original plan was this only but in last minute it was disallowed. So we are searching for alternate way! – Siddhartha Jul 05 '13 at 13:27
0

In my scenario which was very similar to yours, I did the following:

  1. On the Windows Server, I created a Mapped Drive to the folder on the Unix OS. This also managed the Authentication.

  2. In the LotusScript Agent, I extracted to this Mapped Drive, which worked 100%.