Aura7988
V2EX  ›  问与答

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

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