The scenario is....
on development, I dump development production and last-merge.
--- do some work, dumping frequently ---

Then on production I dump production and merge on the development server.

Then the next time I run dump.php on development server, I get following error:

========
# php5 ./dbscripts/dump.php

$ php5 ./dbscripts/dump.php
: command not found
: No such file or directory
sh: -c: line 3: syntax error near unexpected token `|'
'h: -c: line 3: ` |sed -e 's/^INSERT INTO `users` VALUES (//g' -e 's/);$//g' \
: command not found
: No such file or directory
sh: -c: line 3: syntax error near unexpected token `|'
'h: -c: line 3: ` |sed -e 's/^INSERT INTO `users` VALUES (//g' -e 's/);$//g' \

Warning: file(./db_dump_versioning/tmp/users-dumped.txt): failed to open stream: No such file or directory in /nfs/c05/h01/mnt/71334/domains/example.net/html/dbscripts/dbscripts.module on line 257

Warning: file(./db_dump_versioning/tmp/users-lastmerge.txt): failed to open stream: No such file or directory in /nfs/c05/h01/mnt/71334/domains/example.net/html/dbscripts/dbscripts.module on line 258
Warning: Invalid argument supplied for foreach() in /nfs/c05/h01/mnt/71334/domains/example.net/html/dbscripts/dbscripts.module on line 261
Warning: Invalid argument supplied for foreach() in /nfs/c05/h01/mnt/71334/domains/example.net/html/dbscripts/dbscripts.module on line 265
Warning: Invalid argument supplied for foreach() in /nfs/c05/h01/mnt/71334/domains/example.net/html/dbscripts/dbscripts.module on line 271
Warning: Invalid argument supplied for foreach() in /nfs/c05/h01/mnt/71334/domains/example.net/html/dbscripts/dbscripts.module on line 279
: command not found
cat: ./db_dump_versioning/tmp/users.csv: No such file or directory
: No such file or directory
sh: -c: line 3: syntax error near unexpected token `|'
'h: -c: line 3: ` |sed -e "s/#DQ#/\\\"/g" -e "s/#SQ#/\\\'/g" -e 's/#PND#/#/g' \
rm: cannot remove `./db_dump_versioning/tmp/users-dumped.txt': No such file or directory
rm: cannot remove `./db_dump_versioning/tmp/users-lastmerge.txt': No such file or directory
rm: cannot remove `./db_dump_versioning/tmp/users.csv': No such file or directory

Dumped the database to development with full filtering options.
=====

any ideas what the problem is?

Comments

awjrichards’s picture

Can you provide some details on your production server eg OS? Is sed installed? What shell are you using?