What version of STAF are you using on your machines?  What operating 
systems are you using?  What is the exact STAF FS COPY request that you 
are submitting?

If a file copied via the FS service is a symbolic link, the entry 
referenced by the link will be copied (not the symbolic link itself).  
This works as advertised for me.  For example, when copying file 
/usr/local/staf/bin/fmtlog (which is a symbolic link to file 
/usr/local/staf/bin/FmtLog) from a remote Linux RHEL 5 machine (e.g. 
staf4g) machine to the local Linux machine (e.g. staf1e), the FS service 
correctly copies the target of the symbolic link (FmtLog), not the 
symbolic link itself.

On the remote machine, staf4g, here's a listing of the fmtlog and FmtLog 
files in directory /usr/local/staf/bin:

[root@staf4g /]# cd /usr/local/staf/bin
[root@staf4g bin]# ls -l *og
lrwxrwxrwx 1 root root    26 Feb 23 15:36 fmtlog -> 
/usr/local/staf/bin/FmtLog
-rwxrwxr-x 1 root root 49490 Dec  9 11:36 FmtLog
[root@staf4g bin]#

On machine staf1e, I submitting a FS COPY request to copy the symbolic 
link, fmtlog, that points to file FmtLog from machine staf4g to machine 
staf1e.

[root@staf1e bin]# STAF staf4g FS COPY FILE /usr/local/staf/bin/fmtlog 
TOFILE /tmp/FmtLog TOMACHINE staf1e
Response
--------

As you can see, the FS service correctly copied the target of the symbolic 
link for fmtlog (which has file size 49490).

[root@staf1e bin]# ls -l /tmp/FmtLog
-rw-rw-rw-  1 root root 49490 Apr 16 11:06 FmtLog
[root@staf1e bin]#

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   sreeram <sree.jul...@emc.com>
To:     staf-users@lists.sourceforge.net, 
Date:   04/16/2012 06:28 AM
Subject:        [staf-users] symbolic links



while copying symbolic links from remote  machine it should actually chase 

down the target and copy it ?but its failing t0 do when i do it using fs 
copy 


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to