1. 程式人生 > >shell下action:command not found

shell下action:command not found

command 程序語言 action 開發

今天測試同事寫的一個shell腳本,執行的時候報錯,錯誤代碼為"action: command not found"

技術分享

檢查腳本發現“. /etc/init.d/functions”居然被註銷了, 取消註釋後,繼續執行腳本:

技術分享

報錯消失,問題得到解決。說明:一些基礎的函數腳本是放在函數文件裏面,比如放在/etc/init.d/functions裏,與執行的內容分相分離,看起來會更清爽,大型的程序語言都是這樣開發的

本文出自 “冰凍vs西瓜” 博客,請務必保留此出處http://molewan.blog.51cto.com/287340/1932437

shell下action:command not found