求助大神问题出现在哪里啊
#filename sendscipt#!/bin/bash
#随机读取一行
s=$(awk '{a=$0}END{srand();i=int(rand()*NR+1);print a}'/root/subject)
r=$(cat /root/receiver)
#随机读取目录内容
c=$(find /root/content-type f | awk -vR=$RANDOM '{a=$0}END{print a}')
for (( i = 0; i < 5; i++))
do
mail -s $s${r[$i]} < $c
done
求助大神这个shell问题出现在哪里啊?
运行后出现下面的错误:
root@xxx:~# bash sendscipt
mail: You must specify direct recipients with -s, -c, or -b
mail: You must specify direct recipients with -s, -c, or -b
mail: You must specify direct recipients with -s, -c, or -b
页:
[1]