You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 line
337 B

  1. #!/bin/bash
  2. rm sendMail.sh
  3. echo "Please enter the email of your emergency contact: "
  4. read inputline
  5. printf "echo \"Sending email...\"\necho \"I fell from my bike! Please send help!\" | mail -s \"HELP\" -A \"photo.jpg\" $inputline\necho \"Email sent!\"" >> sendMail.sh
  6. chmod 755 sendMail.sh
  7. echo "Emergency contact set as \"$inputline\""