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

fquxozlt  于 2022-11-04  发布在  Unix
关注(0)|答案(2)|浏览(268)

我需要写一个脚本,使用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

从上面我知道一个配置文件需要作为参数传递给btoput。但是我不知道上面配置文件中nodeRemote,name,fromfile,runlocal,runremote,tofile的确切含义。有人能帮我吗?

yrwegjxp

yrwegjxp1#

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

d4so4syb

d4so4syb2#

该文件的详细信息如下:

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

相关问题