This website works better with JavaScript.
Home
Explore
Help
Sign In
binhong
/
BikeSafetyWithPi
mirror of
https://github.com/binhonglee/BikeSafetyWithPi
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Added setup.sh to setup sendMail.sh
master
BinHong Lee
7 years ago
parent
dd4d880e00
commit
a106b31a91
1 changed files
with
8 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
setup.sh
+ 8
- 0
setup.sh
View File
@@ -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…
Cancel
Save