linux - 在 SFTP 时运行 Nohup

标签 linux shell unix sftp

  • 我有一个巨大的文件需要从一台服务器传输到另一台服务器。
  • 我正在使用 sftp 模式并使用命令,例如:“sftp>put file.txt”
  • 问题:如何在 nohup 中运行该命令,以便可以关闭 sftp session 而不终止传输进程。

最佳答案

  echo "put file.txt" | sftp username@hostname
  ctrl-z
  bg
  disown

关于linux - 在 SFTP 时运行 Nohup,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22704009/

相关文章:

linux - 使用 linux shell 命令比较两个文件的数字并找出差异

bash - 如何在 shell 管道中使用不同的文件描述符?

bash - 将命令的输出写入 csv 文件的特定列,unix

linux - grep 彩色线条

linux - 向 Linux 新手用户交付应用程序的最安全方法是什么?

python - 在 Python 解释器 : Explain behavior 中运行 Python 解释器

windows - 有没有办法使用 Perl 脚本更改 Windows 文件夹图标?

linux - xargs + curl "Failed writing body"(不能将多个结果保存到文件)

linux - Zip 垃圾路径选项不起作用

php - System-V 消息队列 PHP C++