pconde
19th March 2009, 08:41
Hi,
We are working with UNIX (sun OS 5.9) and baanIV SP5.
I used file.mv to move files between an initial location and a back-up location.
The two libraries are with permissions drwxrwxrwx owner and group is bsp.
The files created have the following permissions -rw-r----- userA group_bsp.
if I use userB, I can at unix level execute the command
"mv /pathA/fileA /pathB/filea" The file is then moved in pathB with permissions, owner and group same as original "-rw-r----- userA group_bsp"
In the Baan script, executed with same userB, the Baan command file.mv fails (return code = -1 and e =13 this identify a permission problem).:mad:
If I execute in the Baan script the shell command
shell("mv patha/filea /pathb/filea" SHELL_BACKGROUND) if works succesfully.
Seems that file.mv is more restrictive than the unix command "mv" :D
Any idea why this occurs?
We are working with UNIX (sun OS 5.9) and baanIV SP5.
I used file.mv to move files between an initial location and a back-up location.
The two libraries are with permissions drwxrwxrwx owner and group is bsp.
The files created have the following permissions -rw-r----- userA group_bsp.
if I use userB, I can at unix level execute the command
"mv /pathA/fileA /pathB/filea" The file is then moved in pathB with permissions, owner and group same as original "-rw-r----- userA group_bsp"
In the Baan script, executed with same userB, the Baan command file.mv fails (return code = -1 and e =13 this identify a permission problem).:mad:
If I execute in the Baan script the shell command
shell("mv patha/filea /pathb/filea" SHELL_BACKGROUND) if works succesfully.
Seems that file.mv is more restrictive than the unix command "mv" :D
Any idea why this occurs?