How To Add Linux Commands To The Queue And Execute Them One By One

4 Responses

  1. Claudio says:

    What about cmd1; cmd2; cmdN?

    • SK says:

      You’re right. These commands would be executed in the current shell. I think one of the purposes of task spooler is to allow jobs to be decoupled from the submitting shell.

  2. Nicholas Barnes says:

    –> tsp find / -type f -printf ‘%T+ %p\n’ | sort | head -n 20
    on my Debian box only seems to run
    –> tsp find / -type f -printf ‘%T+ %p\n’
    as the output file has the full output of the find command unsorted.
    It seems that you can only pipe if you run the command through “sh -c”, so
    –> tsp sh -c “find / -type f -printf ‘%T+ %p\n’ | sort | head -n 20”
    Does work.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.