Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Shell 如何使用xfb在linux机器之间传输文件?_Shell_Unix - Fatal编程技术网

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

Shell 如何使用xfb在linux机器之间传输文件?,shell,unix,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 从上面我知道需要将C

我需要编写一个脚本,使用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。 但我不知道上述配置文件中nodeRemote、name、fromfile、runlocal、runremote和tofile的确切意义。
有人能帮我一下吗?

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

文件的详细信息如下

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

nodeRemote=xx.UNIX.Axxxxxx为什么不使用
ssh
| |
ftp
?不。使用ssh、sftp或ftp可以很容易地做到这一点。但要求仅使用XFB。