Is 599xp the host name of 10.0.7.235 or 10.0.7.161 ?
On machine 10.0.7.235, can it do a STAF ping of machine ssl://599xp@6550?
e.g. STAF ssl://599xp@6550 PING PING
On machine 10.0.7.161, can it do a STAF ping of machine ssl://599xp@6550?
e.g. STAF ssl://599xp@6550 PING PING
If you can't, then you don't have your TCP/IP / DNS settings set up
corrrectly. Note that STAF uses host names to communicate between
machines (instead of IP addresses if host names are configured). See
section "3.1.4 Why can't my STAF machines communicate" in the STAF FAQ at
http://staf.sourceforge.net/current/STAFFAQ.htm#STAF%20machines%20can%27t%20communicate%20due%20to%20DNS%20issues
for more information on getting machines to communicate via STAF.
Note that the TOMACHINE in a FS COPY request defaults to the machine that
is submitting the FS COPY request. So, you could try removing the "TO
MACHINE 10.0.7.161" option on the FS COPY request to see if that helps
(but it may not).
For information on whether a FS COPY FILE request can copy a file to an
existing folder or to a non-existing folder. please read section "8.4.2
COPY FILE" in the STAF User's Guide at
http://staf.sourceforge.net/current/STAFUG.htm#HDRFSSRV. It describes the
TOFILE option for the COPY FILE request as follows:
TOFILE specifies the name of the file to create. The directory path
specified must already exist on the machine where the file is being copied
to, or else the copy request will fail with RC 17 (File open error). If
neither TOFILE nor TODIRECTORY is specified, this defaults to the same,
unresolved, name as specified in FILE. This option will resolve variables.
These variables will be resolved on the target machine.
So, it says that the directory path for the TOFILE must already exist.
Also, note that the FS COPY request supports the following options:
FAILIFEXISTS specifies that the copy should fail if TOFILE already exists.
The default is to replace the file if it exists.
FAILIFNEW specifies that the copy should fail if TOFILE does not already
exist. The default is to create the file if it does not exist.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: Cindy Zhu <c...@fekete.com>
To: "staf-users@lists.sourceforge.net"
<staf-users@lists.sourceforge.net>
Date: 03/18/2011 01:21 PM
Subject: [staf-users] Copy file to an existing folder
Hi,
I am try to copy a file from remote machine(10.0.7.235) to my
local(10.0.7.161). Here is the STAF command I used:
STAF "10.0.7.235" FS COPY FILE
"D:/Silk/Apps/Harmony/TestResults/Harmony.txt" TOFILE
"D:/SilkTemp/Harmony.txt" ONMACHINE "10.0.7.161"
I got this error message:
STAFConnectionProviderConnect: Timed out conneting to endpoint: select()
timeout: 22, Endpoint: ssl://599xp@6550.
But when I ping this remote machine, everything is fine. I have no idea
why my file copy failed?
One more silly question, "FS COPY FILE" should be able to copy a file to
an existing folder or non-existing folder, right?
Thanks,
CIndy
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users