23,124
社区成员
发帖
与我相关
我的任务
分享
#!/bin/sh
test 3 -eq 2 || return 1
#!/bin/sh
echo "********************* configtemplate **************************"
token=`./1test.sh`
echo --------token=$token
#!/bin/sh
mailfolder=/000home/simon/example.data || exit 1
[ -r "$mailfolder" ] || { echo "Can not read $mailfolder" ; exit 1; }
echo "$mailfolder has mail from:"
grep -q "^from " $mailfolder || exit 1
#!/bin/sh
mailfolder=/000home/simon/example.data
if [ $?=0 ];then
ruturn $?
exit 1
fi
[ -r "$mailfolder" ] || { echo "Can not read $mailfolder" ; exit 1; }
if [ $?=0 ];then
ruturn $?
exit 1
fi
echo "$mailfolder has mail from:"
grep "^from " $mailfolder
if [ $?=0 ];then
ruturn $?
exit 1
fi
#!/bin/sh
echo "********************* configtemplate **************************"
cd /home/simon
./B.sh
if [ $?!="0" ];then
echo 1
fi
echo "****Test****“