您当前的位置: 首页 >  linux

qq_34412985

暂无认证

  • 0浏览

    0关注

    1061博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

linux shell /etc/init.d/functions 加了个函数不起作用

qq_34412985 发布时间:2018-11-23 21:53:41 ,浏览量:0

1.在/etc/init.d/functions中加了个函数test(){echo "I am oldboy."}

然后.或source /etc/init.d/functions

调用函数 test提示没有test command

后来在test函数上面发现了return 0,将test函数移到return 0上面就可以了。

关注
打赏
1653291990
查看更多评论
立即登录/注册

微信扫码登录

0.0406s