0

我需要编写一个脚本,使用 XFB 协议将文件从一台服务器传输到另一台服务器。我对此进行了谷歌搜索并找到了以下信息。

ConfigFile
---
nodeRemote=xx.UNIX.Axxxxxx
name=cdadmin
fromfile=xfb_bs_test.csv
runlocal=dummy
runremote=dummy
filetype=csv
tofile=xfb_bs_test.csv 


XFB cmd ::
btoput -f  ConfigFile

从上面我知道需要将 ConfigFile 作为参数传递给 btoput。但是我不知道上面 ConfigFile 中 nodeRemote,name,fromfile,runlocal,runremote,tofile 的确切含义。有人可以帮我吗?

4

2 回答 2

0

noderemote 代表您的目标服务器 XFB。ID 名称代表拥有 XFB 进程的服务器的 linux 用户。fromfile 代表源文件名。(文件位置将在单独的配置文件中声明) runlocal 和 runremote 代表要在本地(您的机器)和远程(目标机器)上运行的脚本

于 2016-02-22T11:58:25.177 回答
0

该文件的详细信息如下;

nodeRemote=xx.UNIX.Axxxxxx <-- Remote Node to which File Trasnfer is being made. This can be looked up from locpart.smp
name=cdadmin <-- user with which file transfer is being made
fromfile=xfb_bs_test.csv <-- File being transferred
runlocal=dummy <-- Local Script to be executed post successful File transfer
runremote=dummy <-- Some Remote Script to be executed post successful File transfer [Generally used for Remote File processing]
filetype=csv <-- Type of File being transferred
tofile=xfb_bs_test.csv  <-- File name to be made at destination
于 2020-05-22T17:02:25.990 回答