--- /dev/null
+<?php
+$BASE_LIB="../lib";
+$BASE_BIN="/usr/bin";
+
+require_once "$BASE_LIB/lib.php";
+
+if(!isset($argv[5])) {
+ echo "Usage: ".$argv[0]." changer-device command slot archive-device drive-index\n";
+ exit(0);
+}
+
+$changer_dev = $argv[1];
+$command = $argv[2];
+$slot = $argv[3];
+$arc_device = $argv[4];
+$drive_index = $argv[5];
+
+
+?>
\ No newline at end of file
--- /dev/null
+<?php
+
+$BASE_LIB="../lib";
+$BASE_DATA="../db";
+$BASE_BIN="/usr/bin";
+
+require_once "$BASE_LIB/lib.php";
+
+if(!isset($argv[1])) {
+ echo "Usage: ".$argv[0]." command\n";
+ echo "\tbacula-config - outputs bacula config\n";
+ echo "\tinit - inits the bacula php changer stuff\n";
+ echo "\tadd-disk - adds a disk\n";
+ echo "\tdisks - lists current disks\n";
+ echo "\tstatus - prints status (whats where in which slot, drive, etc)\n";
+ exit(0);
+}
+
+$command = $argv[1];
+
+?>
\ No newline at end of file