如何使用xfb在linux机器之间传输文件?

时间:2013-08-19 07:37:45

标签: shell unix

我需要编写一个脚本,使用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的确切含义。 有人可以帮我这个吗?

2 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分: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