Aura7988
V2EX  ›  问与答

crontab 脚本中如何在命令需要密码的时候自动输入密码?

  •  
  •   Aura7988 · Aug 31, 2018 · 2110 views
    This topic created in 2858 days ago, the information mentioned may be changed or developed.
    写了一个 crontab 脚本用来自动更新 brew cask,但有些应用的更新需要输入密码,否则就会更新失败。
    可以在脚本中把密码传递给命令吗?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2787 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 12:28 · PVG 20:28 · LAX 05:28 · JFK 08:28
    ♥ Do have faith in what you're doing.