View | Details | Raw Unified | Return to bug 248142
Collapse All | Expand All

(-)phplist.new/files/phplist.in (-10 / +10 lines)
Lines 1-18 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
# script to run PHPlist from commandline. You may need to edit this to make it work
3
# script to run phpList from commandline. You may need to edit this to make it work
4
# with your shell environment. The following should work for Bash on Fedora Linux
4
# with your shell environment. The following should work for Bash on Linux
5
# but this may vary strongly in other situations. You will need to dig into the
5
# but this may vary strongly in other situations. You will need to dig into the
6
# code to make sure it works for you.
6
# code to make sure it works for you.
7
7
8
# in commandline mode, access is restricted to users who are listed in the config file
8
# in commandline mode, access is restricted to users who are listed in the config file
9
# check README.commandline for more info
9
# check README.commandline for more info
10
#
11
# when you set this file up, and place it in your PATH, you can do eg
12
#  $ phplist -pprocessqueue
13
# to run the queue
10
14
11
# identify the config file for your installation
15
# run the phpList index file with all parameters passed to this script
12
CONFIG=%%WWWDIR%%/lists/config/config.php
16
# make sure the php binary is "cli"
13
export CONFIG
17
# 
14
18
%%LOCALBASE%%/bin/php %%WWWDIR%%/lists/admin/index.php -c %%WWWDIR%%/lists/config/config.php $*
15
# alternatively you can use -c <path to config file> on the commandline
16
17
# run the PHPlist index file with all parameters passed to this script
18
exec %%LOCALBASE%%/bin/php %%WWWDIR%%/lists/admin/index.php $*

Return to bug 248142