 -    dst->set_target(src->target);
 - 
 -    return dst;   
--@@ -95,9 +106,12 @@
+-@@ -95,9 +104,12 @@
 - void free_runscript(RUNSCRIPT *script)
 - {
 -    Dmsg0(500, "runscript: freeing RUNSCRIPT object\n");

-+   commands->append(c);
- }
- 
-+void RUNSCRIPT::get_command(const char* command, char *acmd_type, char **cmd)
-+{
-+   *acmd_type = command[0];
-+   *cmd = (char *)command + 1;
-+}
-+
- /* set this->target to client_name */
- void RUNSCRIPT::set_target(const POOLMEM *client_name)
- {
-@@ -210,14 +186,71 @@
- 
- bool RUNSCRIPT::run(JCR *jcr, const char *name)
- {

-+   return 1;
-+}
-+
-+/* run a command from the list */
-+bool RUNSCRIPT::run_command(const char *command, JCR *jcr, const char *name)
-+{
-    POOLMEM *ecmd = get_pool_memory(PM_FNAME);
--   int status;
-+   int status, cmd_type;
-    BPIPE *bpipe;
--   char line[MAXSTRING];
-+   char line[MAXSTRING], *cmd;
- 
--   ecmd = edit_job_codes(jcr, ecmd, this->command, "", this->job_code_callback);
--   Dmsg1(100, "runscript: running '%s'...\n", ecmd);
