Rumah >pembangunan bahagian belakang >tutorial php > 一个简单shell,不按套路来,哪位高手帮看一下
一个简单shell,不按套路来,谁帮看一下
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->#!/bin/bash exeuser=worker userid=`id -nu` if [ "$userid"!="$exeuser" ];then echo "only user:worker can execuce" exit; fi