This website works better with JavaScript.
首頁
探索
說明
登入
binhong
/
BikeSafetyWithPi
镜像来自
https://github.com/binhonglee/BikeSafetyWithPi
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
0
Wiki
Activity
瀏覽代碼
Added setup.sh to setup sendMail.sh
master
BinHong Lee
7 年之前
父節點
dd4d880e00
當前提交
a106b31a91
共有
1 個文件被更改
,包括
8 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
setup.sh
+ 8
- 0
setup.sh
查看文件
@@ -0,0 +1,8 @@
#!/bin/bash
rm sendMail.sh
echo "Please enter the email of your emergency contact: "
read inputline
printf "echo \"I fell from my bike! Please send help!\" | mail -s \"HELP\" -A \"photo.jpg\" $inputline\necho \"Email sent!\"" >> sendMail.sh
chmod 755 sendMail.sh
echo "Emergency contact set as \"$inputline\""
Write
Preview
Loading…
取消
儲存