[quote=vipsoft @ Jun 30 2009, 02:21 PM]I’m guessing your shell doesn’t support substringing.
Can you add “&serialize=0” to the query before that line?
And change that line to simply:
TOKEN_AUTH=${CMD_TOKEN_AUTH_RESULT}[/quote]
I also had this issue. The above fix seemed to resolve the Bad Substitution problem however, I am now running into a php error in index.php when I try to run archive.sh . Here is the error:
session_start() [function.session-start]: The session id contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,'
in '/var/www/piwik/index.php' at the line 50
any ideas?
The session_id() is returning empty string… which is what it should be, correct? Since there is now new session yet. Manually setting the session id seems to resolve the issue:
[quote=vipsoft @ Jun 30 2009, 02:21 PM]I’m guessing your shell doesn’t support substringing.
Can you add “&serialize=0” to the query before that line?
And change that line to simply:
TOKEN_AUTH=${CMD_TOKEN_AUTH_RESULT}[/quote]
Thanks for your help (everybody). I have taken some lines of that script and tested them on several servers, all bash. The outcomes are not the same on all machines, I cannot explain this yet… so we go on testing!
We’ve switched to using Zend_Session throughout in the upcoming 0.4.2 release. One of the changes removed the session_start() from index.php, so this may be moot.