Thread history

From Talk:RPi-Cam-Web-Interface
Viewing a history listing
Jump to: navigation, search
Time User Activity Comment
08:36, 23 March 2017 IoT Maker DSM (talk | contribs)

Comment text edited

 
08:36, 23 March 2017 IoT Maker DSM (talk | contribs)

Comment text edited

 
08:35, 23 March 2017 IoT Maker DSM (talk | contribs)

Comment text edited

 
08:34, 23 March 2017 IoT Maker DSM (talk | contribs)

New thread created

 

All, I have the RPi Cam Web up and working and now moving onto tidying up the install. I installed, configured and verified that ssmtp and mpack are able to send emails/attachments from pi@raspberrypi prompt.

I need a second set of eyes or someone to verify this is the proper approach:


1. nano /var/www/macros/end_vid.sh

2. add:

  1. !/bin/bash

list=( $1*.th.jpg )

thumb="${list[-1]}"

mpack -s subject /var/www/media/thumb mail.address@example.com

[save and exit nano]

3. sudo chmod a+x /var/www/macros/end_vid.sh

4. sudo chown www-data:www-data /var/www/macros/end_vid.sh

Does this look correct? is there a more elegant way or method that I overlooked?

Guidance and help are appreciated! Brian

08:34, 23 March 2017