[英]cv maillist script
I've been trying to send many cv at once. 我一直在尝试一次发送很多简历。 But my script doesn't work.
但是我的脚本不起作用。 The getrow program works well -> parse a cv file
getrow程序运行良好-> 解析cv文件
Any idea? 任何想法?
EDIT5 : 编辑5:
I was stupid. 我真蠢啊。 I forgot that my variable was not i
我忘了我的变量不是我
Here is my revised code (that still doesn't work). 这是我修改后的代码(仍然无效)。
Do you know how to increment $var0? 您知道如何递增$ var0吗?
#!/bin/bash
path=~/tests/project_mall
vc=$path/scurricula.pdf
tiv=$path/smotiv.pdf
index=0
LIMIT=$(getrow $1)
while [ "$index" -lt "$LIMIT" ]
do
(mail1_s $(getrow $1 $index 1) $(getrow $1 $index 2) ; uuencode $vc $vc ; uuencode $tiv $tiv) | mailx -s "candidature spontanèe" $(getrow $1 $index 0)
echo -n "mail number $index has been sent" ; echo
sleep 7
let "index+=1"
done
exit 0
EDIT6 : solved, i deleted the output because it contained my mail. EDIT6:解决了,我删除了输出,因为它包含我的邮件。
The script above has been edited and works. 上面的脚本已被编辑并且可以使用。 See ya.
再见。
对我来说,这似乎是一个问题$var0++
,请尝试var0 = $var0 + 1
来更新值。
So the answer is simple. 因此答案很简单。 To increment the while loop, you use let
index+=1
with index the variable. 要增加while循环,请使用let
index+=1
和index变量。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.