linux里daily_routine實(shí)例代碼詳解
更新時間:2019年09月05日 15:27:54 作者:熊熊闖深林
在本篇文章里小編給大家整理的是關(guān)于linux里daily_routine實(shí)例代碼以及相關(guān)知識點(diǎn)內(nèi)容,有需要的朋友們參考下。
首先看實(shí)例代碼:
#/bin/bash
cal
date -u
echo "Hello,welcome ${LOGNAME}!A full day has begun!"
read -p "input your pass word!" pwd
if test $pwd == "123"
then
echo "Your login sucessfully!"
for file in /tmp/*
do
echo $file
done
else
echo "Deny logon"
fi
cal 打印日歷
date -u 顯示或設(shè)置全球時間(格林威治時間)
${LOGNAME}當(dāng)前登錄用戶
以上實(shí)例非常簡單,大家可以嘗試測試下,感謝大家的學(xué)習(xí)和對腳本之家的支持。
相關(guān)文章
詳解Linux內(nèi)核內(nèi)存管理架構(gòu)
這篇文章給大家分享了關(guān)于Linux內(nèi)核內(nèi)存管理架構(gòu)的相關(guān)知識點(diǎn)內(nèi)容,有興趣的朋友參考學(xué)習(xí)下。2018-08-08
在Windows的Apache服務(wù)器上配置對PHP和CGI的支持
這篇文章主要介紹了在Windows的Apache服務(wù)器上配置對PHP和CGI的支持,其中CGI腳本文中演示的為Perl示例,需要的朋友可以參考下2015-07-07

