Bash script, watch folder, execute command

后端 未结 12 1323
小鲜肉
小鲜肉 2020-12-04 08:57

I am trying to create a bash script with 2 parameters:

  • a directory
  • a command.

I want to watch the

12条回答
  •  一向
    一向 (楼主)
    2020-12-04 09:04

    In Mac OS X, you can just control-click a folder, then click 'Folder Actions Setup'. This will allow you attach actions to a folder, i.e. scripts to run.

    OS X comes with a number of prebuilt scripts, or you can create your own.

提交回复
热议问题