Long-time listener, first-time caller....

A colleague of mine is considering using the STAF FS service to copy a 
file onto a test server, and we know that we can use the STAF FS COPY 
command to do that -- we're doing that, and it's fine. Here's the wrinkle: 
we need the file to show up on the target server with specific 
ownership/permissions. When we use the STAF FS COPY command to copy the 
file, the file ends up owned by the OS userid that the STAF process is 
running as, with default file permissions.

Is there a way to set file ownership/permissions? Or to copy a file and 
retain ownership/permissions?

We've looked and can't seem to find any obvious way to do this...

We did come up with a couple of workarounds but they're all pretty 
clumsy... for example we could do a STAF FS COPY, then a STAF PROCESS 
START to run the chown and chmod commands we'd need... but we were 
thinking there must be something more elegant than that...

Another issue we're facing is the requirement to rename a file. For 
reasons that are internal to our product, 'copy' isn't good enough; we 
actually need to be able to take a file in-place and just change its name. 
We were hoping/expecting to find an FS service subcommand but we didn't 
find one. Obviously we could do a STAF PROCESS START and use the OS's 
native commands to do the rename, but we were trying to use STAF services 
where possible so as to insulate ourselves from all those quirky 
OS-specific differences.

Any ideas, on either of these questions?

----------------------------------------------------------------------------------------
Joe Veilleux
IBM/Lotus Domino Server Quality Engineering
5 Technology Park Drive
Westford MA 01886
Email: [EMAIL PROTECTED]
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to