epub/scripts/ebook.php
line 119: // $epub_ids = 'ditaa:win_filebrowser;;introduction;;v06;;features;;index:site_inx';
I used this to test the script. For an all-purpose script, at line 121:
if(!isset($epub_ids )) {
$epub_ids = $argv[1];
if(isset( $argv[2])) $e_titles = $argv[2];
}
In your php script, which is collecting the ids:
system('php ebook.php "abc:def;;ghi" "title;;title2"'); //run from ebook.php directory
Note that the ids and titles are formatted as two strings. You can also do this with a shell script:
/usr/bin/php ebook.php "abc:def;;ghi" "title;;title2"
Note the double semi-colons, which are used as separators.