search

Home  >  Q&A  >  body text

node.js - 请问这句sh怎么理解 exec "`dirname "$0"`/node" "$0" "$@"

exec "dirname "$0"/node" "$0" "$@"
从nodejs里看到的不懂

怪我咯怪我咯2786 days ago662

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-17 13:18:02

    rrreee                    # 这个脚本自己的路径
    "`dirname "rrreee"`"/node # 这个脚本同个目录下的node程序的路径
    $@                    # 这个脚本这次被执行时的命令行参数
    

    Together it is... Use the node program in the same directory to explain the script itself

    reply
    0
  • Cancelreply