File: reminders.sh

package info (click to toggle)
opendb 0.81p18-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,716 kB
  • ctags: 6,787
  • sloc: php: 50,213; sql: 3,098; sh: 272; makefile: 54; xml: 48
file content (13 lines) | stat: -rw-r--r-- 409 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

#
# Defined variables
#
LOGFILE=log.$$
MAIL=jasonpell@i-am-vegan.net

lynx -accept_all_cookies -dump -dont_wrap_pre 'http://opendb.i-am-vegan.net/demo/login.php?op=login&uid=<opendb_admin_uid>&passwd=<opendb_admin_password>&redirect=item_borrow.php?op%3Dadmin_send_reminders%26mode%3Djob' > /tmp/$LOGFILE

mail -s "Borrower Reminders Log `date +%d/%m/%y`" $MAIL < /tmp/$LOGFILE

rm /tmp/$LOGFILE