teddybear
2nd August 2005, 09:19
In odrer to transfer a file from server(UNIX) to client (PC), we can use server2client. This is possible if the BaaN session is call from the client PC.

What if the session is called in the server, eg report session started by job ? How can I transfer the generated report to a specify PC ?

bamnsour
2nd August 2005, 09:55
If you run your Baan session from a job, server2client does not work. It may even get stuck if you have a session that includes a server2client function.

The Baan session has no way to know the client that is running when you are using ba or running in a job (which means no client).

Viplov
2nd August 2005, 10:08
hi Teddy

You can do one thing copy that file to user folder in server and from client pc get the file through ftp.

Regards

Viplov

bdittmar
2nd August 2005, 11:02
In odrer to transfer a file from server(UNIX) to client (PC), we can use server2client. This is possible if the BaaN session is call from the client PC.

What if the session is called in the server, eg report session started by job ? How can I transfer the generated report to a specify PC ?

Hello,

if running a remote shell daemon on client, you can use shell commands to transfer the files to the specific client.

1) print to FILE


2) convert
function convert.file()
{

ret = shell("ux2dos /path/file > /path/converted_file", 64)

}

3)transfer
function transfer.file()
{
ret = shell("rcp /path/file user@client:'drive:\
path\file'", 64)

}

Regards

naabi0
2nd August 2005, 17:04
As long as the client is up with FTP services running, you can put the file on the client with an FTP script.

mark_h
2nd August 2005, 17:24
And another solution is that the job runs and creates the file. Then when the client is brought up and the user logs into baan a session is automatically run which downloads the file to the PC. Sounds like plenty of options just choose the one that best suits your needs.