Skip to content

Bug: cannot add a very long command to queue #24

@orsharir

Description

@orsharir

When trying to add a command with many parameters, task-spooler will crash at:

error("Reading the size of the name");

I'm currently using a workaround by having a script that stores the command in a variable, and then pass task-spooler a script that reads the command from the variable and execute it. But that's just a hack of course.

Here are my workaround scripts:

ts_helper with usage ts_helper OPTIONS @ LONG_COMMAND:

#!/bin/bash
IFS='@' read -ra ARGS <<< "$@";
if [ ${#ARGS[@]} -eq 2 ];
then
  SCRIPTRAW="${ARGS[1]}"
  SCRIPT="$SCRIPTRAW" ts "${ARGS[0]}" ts_helper_runner;
else
  echo "Wrong number of arguments";
fi;

which calls the script ts_helper_runner:

#!/bin/bash
exec $SCRIPT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions