課程
/運(yùn)維&測(cè)試
/Linux
/Shell典型應(yīng)用之系統(tǒng)信息及運(yùn)行狀態(tài)獲取
誰能告訴我是什么意思呀?
2016-11-14
源自:Shell典型應(yīng)用之系統(tǒng)信息及運(yùn)行狀態(tài)獲取 1-2
正在回答
#!/bin/dash
/*a simple shell*/
/* use command 'leave' to exit*/
?
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#define BUFFERSIZE 80
extern char *get_current_dir_name(void);
extern char *getenv(const char *name);
extern pid_t waitpid(pid_t pid, int *status, int options);
char buffer[BUFFERSIZE+1];
如果要改,還是要看你的腳本里面的具體內(nèi)容來改,順便,修改權(quán)限的命令是:chmod 權(quán)限值 文件名;
ls437088 提問者
第2和第3行的代碼權(quán)限不夠,第13行的代碼語(yǔ)法錯(cuò)誤;(你可以用set nu來查看行號(hào))
舉報(bào)
Linux系統(tǒng)常用信息及運(yùn)行狀態(tài)監(jiān)控,能夠使用shell腳本進(jìn)行分析
3 回答老師您好,/bin/sh和/bin/sh在執(zhí)行腳本的時(shí)候有什么不同啊?
2 回答if [[ ! ${execshell} =~ ^[0-9]+ ]];中的“=~ ” 是什么意思?
1 回答第一個(gè)運(yùn)行的腳本在mac下面就涼了,語(yǔ)法錯(cuò)誤。。。
2 回答grep -E “\<nameserver[ ]+”中的 “\<”是什么意思
2 回答linux shell找tomcat下的目錄
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-11-14
#!/bin/dash
/*a simple shell*/
/* use command 'leave' to exit*/
?
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
?
#define BUFFERSIZE 80
?
extern char *get_current_dir_name(void);
extern char *getenv(const char *name);
extern pid_t waitpid(pid_t pid, int *status, int options);
?
char buffer[BUFFERSIZE+1];
2016-11-14
如果要改,還是要看你的腳本里面的具體內(nèi)容來改,順便,修改權(quán)限的命令是:chmod 權(quán)限值 文件名;
2016-11-14
第2和第3行的代碼權(quán)限不夠,第13行的代碼語(yǔ)法錯(cuò)誤;(你可以用set nu來查看行號(hào))