marwest98
20th May 2008, 17:10
I have a user that runs a script called timjrc174m000 to produce a file and copy that file into another directory. For some reason the file is going into the second directory with 0 records. They have to then FTP the file across now.

Here are the lines from the script:

This is what is was when the users say it worked:
|#10076.so
| i = server2client("/u01/matrix/matrix_new\OPRDOV01.TXT","I:\Systems\matrix.files\OPRDOV01.TXT",true,false,false)
|#10076.so

They wanted to change the file path, so it was changed to:
|#10076.sn
i = server2client("/u01/baan/prism/matrix/matrix_new\OPRDOV01.TXT","I:\Systems\matrix.files\OPRDOV01.TXT",true,false,false)
|file.mv("/u01/baan/prism/matrix/matrix_new", "/u01/baan/prism/matrix/matrix_new/archive")
|#10076.en

Now they say it copies with 0 records. Both look very similar to me, why would this be happening? Any ideas?

marwest98
21st May 2008, 16:18
I have been reading on the board that this is caused by file permissions. I do not know what would have changed to cause this, new server or new PC maybe? The permissions look OK to me. How would I get them changed. I am not really a windows person and it looks like I don't have any authority to change them. Besides when I mentioned it to the windows people, they basically said I was crazy.

marwest98
21st May 2008, 16:21
It's a Tools Question.

george7a
21st May 2008, 16:37
What baan version are you on IV/V/LN?

I can notice that you have a wrong slash in both paths:
"/u01/baan/prism/matrix/matrix_new\OPRDOV01.TXT"

Since I see it is a UNIX server:
"/u01/baan/prism/matrix/matrix_new/OPRDOV01.TXT"

I hope this helps,

- George

marwest98
21st May 2008, 21:14
Actually, we had it the way you mentioned, and had to change it to the way it currently is to get it to work at all. We are BAAN 5c.

george7a
22nd May 2008, 09:02
You mean the "\" was working and the "/" did not work?

Can you tell me what is the value of "i" after the server2client run? It should contain the return value.

- George

marwest98
22nd May 2008, 15:19
Yes, the \ works and the / does not. There is actually an old post that says the same thing. What we can't do is get the file on to the I drive portion to go automatically, the user is having to manually FTP it to the I drive. I think it has to do with windows permissions, but, I do not know how to prove it and the windows people think I'm crazy. I don't have permission to reset the permissions, so, how do I prove it? I saw the permissions thing mentioned in old posts also.

george7a
22nd May 2008, 15:21
Yes, the \ works and the / does not. There is actually an old post that says the same thing. This is strange!

Can you tell me what is the value of "i" after the server2client run? It should contain the return value.

- George

marwest98
22nd May 2008, 15:44
The entire line looks like i=server2client("/u01/baan/prism/matrix/matrix_new\OPRDOV01.TXT","I:/Systems/matrix.files/OPRDOV01.TXT",true,false,false)
For some reason, the system puts the file into /u01/baan/prism/matrix/matrix_new\OPRDOV01.TXT, but When the FTP across happens it put the file there with 0 bytes. The user has to manually FTP the file to get the file out with the data.

george7a
22nd May 2008, 15:47
Can you tell me what is the value of "i" after the i=server2client run? It should contain the return value.

Can you debug and inform us?

marwest98
22nd May 2008, 16:24
I was running it in our test VRC and the value of i after I ran was 0. However, I am new here, and, to Baan itself. I may not have the correct permissions for me to run it and the FTP portion. The users just ran it in production, but, it was too late for me to compile with debugger and stop them from running. They are behind and in a hurry.

marwest98
22nd May 2008, 16:25
I have someone who is going to reset the permissions on the server. They recently switched to a new server.

marwest98
22nd May 2008, 16:34
The other posts that I have been reading on this are from Susanne on Dec 15 2004 - Server2client does not work more, and nansat99 from March 31 2006 - Server2client()