en@frrom
15th May 2012, 21:08
We are running LN on Unix. I want to send some print files directly to a shared map on a Windows machine in the network. How can I set up a Device in LN to achieve this? If I just use ascii with 'rewrite file' and enter the shared Windows folder (\\...), it gives me an error that it cannot write the file.

shah_bs
18th May 2012, 21:05
I am not familiar with LN, but as far as I know, it is not possible for BAAN installed on a UNIX environment to directly put files on a WINDOWS network folder. On the other hand, it could be a permission issue with the target folder that can be fixed by the windows admin.

In BAAN IVc the way I do this is as follows:

- in a customized program script, after creating the output file in (for example) /tmp in UNIX, call the server2client() function to transfer the file. This function takes the target file name in the format like \\folder\filename.ext. If for some installation, it does not, it will work with the remote folder mapped to a drive letter.

- again, in a customized program script, create the set of FTP commands that will ftp the file from the UNIX machine to the windows folder. This, of course, requires the windows folder to be set up appropriately with an IP address - this can be set up by the windows admin. [The ftp script is pretty basic:


unset noclobber
(
echo user FTPuserID ftppw
echo ascii
echo cd "remoteFolderInWindows"
echo lcd "/tmp"
echo put "unixOutputFromBAAN.csv"
echo quit
) | ftp -n -i nnn.nnn.nnn.nnn


where nnn.nnn.nnn.nnn is the IP address assigned somehow by the admin gurus to the root of the remoteFolderInWindows. The admin gurus also create the FTPuserID and its ftppw. The cd to remoteFolderInWindows is optional if you do not need it - the file will then be 'put' in the root folder by FTP.

mark_h
21st May 2012, 15:14
As shah mentioned we use server2client to write files to a client based shared windows server directory. In somecases we wrote our own device drivers to first convert it to ascii(using ttstpconv) and then run the server2client command.

jclju1
21st May 2012, 17:41
It is possible to use samba for sharing folders between Unix and Windows. You can print to file in a shared Unix directory and this file is immediately available on Windows.