【问题标题】:Get filenames of RAR achive via smbclient通过 smbclient 获取 RAR 的文件名
【发布时间】:2017-12-07 17:20:23
【问题描述】:

我想从 linux 服务器获取位于远程 windows 服务器中的 RAR 存档中的文件名列表。 这是我的命令:

smbclient -U username%password '\\IP\D$\' --directory '\Backup_Logs' -c '"%programfiles(x86)%\WinRAR\unrar.exe" l file.rar'

在 linux 服务器上运行后,答案是这样的:

%programfiles(x86)%\WinRAR\unrar.exe: 找不到命令

但我确定我在 windows 机器上安装了 Winrar... 我的错误在哪里,或者我怎样才能以另一种方式达到我的目标?

谢谢。

【问题讨论】:

    标签: smb winrar


    【解决方案1】:

    --command 选项可以使用有限的一组操作。 它们列在https://www.samba.org/samba/docs/man/manpages-3/smbclient.1.html上的操作标题下

    在 Linux 系统上使用本地 unrar 命令之前尝试使用smbmount

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-26
      • 1970-01-01
      • 2011-08-20
      • 1970-01-01
      • 1970-01-01
      • 2019-05-23
      • 2020-06-24
      • 1970-01-01
      相关资源
      最近更新 更多