Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2681

cf-execd truncates output from exec_command

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: To Do
    • Priority: Lowest
    • Resolution: Unresolved
    • Affects Version/s: 3.13.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Policy:

      body executor control
      {
            schedule => { "any" };
            splaytime => "1";
      
            exec_command => "/bin/sh -c 'echo RUNNING; date; sleep 120; echo DONE'";
      }
      
      bundle agent main
      {
      
      }
      

      Output:

      # cf-execd -KIlFf ./cf_execd.zd3520.cf 
      2017-08-07T10:23:45+0000     info: RUNNIN
      2017-08-07T10:23:45+0000     info: Mon Aug  7 10:23:45 UTC 2017
      2017-08-07T10:25:09+0000     info: RUNNIN
      2017-08-07T10:25:09+0000     info: Mon Aug  7 10:25:09 UTC 2017
      2017-08-07T10:25:45+0000     info: DONE
      2017-08-07T10:26:33+0000     info: RUNNIN
      2017-08-07T10:26:33+0000     info: Mon Aug  7 10:26:33 UTC 2017
      2017-08-07T10:27:09+0000     info: DONE
      2017-08-07T10:27:57+0000     info: RUNNIN
      2017-08-07T10:27:57+0000     info: Mon Aug  7 10:27:57 UTC 2017
      2017-08-07T10:28:33+0000     info: DONE
      2017-08-07T10:29:21+0000     info: RUNNIN
      2017-08-07T10:29:21+0000     info: Mon Aug  7 10:29:21 UTC 2017
      2017-08-07T10:29:57+0000     info: DONE
      2017-08-07T10:30:45+0000     info: RUNNIN
      2017-08-07T10:30:45+0000     info: Mon Aug  7 10:30:45 UTC 2017
      2017-08-07T10:31:21+0000     info: DONE
      2017-08-07T10:32:09+0000     info: RUNNIN
      2017-08-07T10:32:09+0000     info: Mon Aug  7 10:32:09 UTC 2017
      2017-08-07T10:32:45+0000     info: DONE
      
      • Notice the truncated word "RUNNIN".

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              a10038 jimis (Dimitrios Apostolou)
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel