【问题标题】:How to transfer files bewtween linux machines using xfb?如何使用 xfb 在 linux 机器之间传输文件?
【发布时间】:2013-08-19 07:37:44
【问题描述】:

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

【问题讨论】:

  • 为什么不使用ssh || ftp?
  • 没有。使用 ssh、sftp 或 ftp 这可以轻松完成。但要求是只能使用 XFB。

标签: shell unix


【解决方案1】:

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

【讨论】:

    【解决方案2】:

    文件详情如下;

    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
    

    【讨论】:

      猜你喜欢
      • 2013-03-26
      • 2018-02-15
      • 1970-01-01
      • 2016-06-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-19
      • 1970-01-01
      相关资源
      最近更新 更多