Resolved offline. 

The problem was due to specifying localhost (same as local) for the 
TOMACHINE.  However, as documented in the STAF User's Guide, if you 
specify "local" for the TOMACHINE on a FS COPY FILE request, this 
indicates to copy the file to the same machine that the file is being 
copied from (not the machine from which you're submitting the FS COPY 
request, which is what he was really trying to do).  After changing 
TOMACHINE to specify the host name of the correct target machine, the FS 
COPY request worked fine.

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




Stephan Lips <stephan.l...@gmail.com> 
07/23/2009 10:57 AM

To
staf-users@lists.sourceforge.net
cc

Subject
[staf-users] problem with FS copy: RC 17 for file that is not in use






Greetings,

I am attempting to copy a file from a Win2k3 box to another Win2k3 box, 
using the below cmd, receiving RC 17 (FileOpenError).  On the target 
system (local) the file does not exist (the directory does), on the remote 
system the file is not open by any process.  Any idea what could be 
causing the error?

Thanks, 

- Stephan

=============================
On machine issuing the FS COPY cmd
=============================

D:\wbsf.testAutomation\infrastructure\ant>staf 9.3.169.147 FS copy file 
c:/wdpe/wid62/pf/WBMonSrv_wps/logs/ser
ver1/SystemOut.log.test tofile 
d:/wbsf.testAutomation/temp/SystemOut.log.test tomachine localhost
Error submitting request, RC: 17
Additional info
---------------
d:\wbsf.testAutomation\temp\SystemOut.log.test

D:\wbsf.testAutomation\infrastructure\ant>dir d:\wbsf.testAutomation\temp
 Volume in drive D has no label.
 Volume Serial Number is A0D5-159F

 Directory of d:\wbsf.testAutomation\temp

07/23/2009  10:39 AM    <DIR>          .
07/23/2009  10:39 AM    <DIR>          ..


==================================
On the system on which the original file resides
==================================

C:\WDPE\WID62\pf\WBMonSrv_wps\logs\server1>handle SystemOut.log.test

Handle v2.01
Copyright (C) 1997-2001 Mark Russinovich
Sysinternals - www.sysinternals.com


C:\WDPE\WID62\pf\WBMonSrv_wps\logs\server1>
------------------------------------------------------------------------------
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to