Project

General

Profile

Actions

Bug #21858

open

Command seq not found in crontab on AIX

Added by Elaad FURREEDAN 2 months ago. Updated 1 day ago.

Status:
Pending technical review
Priority:
N/A
Category:
Server components
Target version:
Severity:
UX impact:
I dislike using that feature
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Priority:
0
Regression:
Yes

Description

When we run this command: crontab -l | grep -i rudder
We have an error like :

sh: seq:  not found * * * * /opt/rudder/bin/rudder agent check -q >> /var/log/rudder/agent-check/check.log 2>&1 # RUDDER CRON

We use seq to define que frequency of the run, but it doesn't exists on AIX OS

It is introduce by: https://issues.rudder.io/issues/16859

Actions #2

Updated by Nicolas CHARLES 2 months ago

seq command can be replaced by

echo '0 59' | awk '{ for (i=$1;i<=$2;i=i+5) { printf "%s%s", sep, i; sep=","}} END{print ""}'

Actions #3

Updated by Nicolas CHARLES 2 months ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #4

Updated by Nicolas CHARLES 2 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1792
Actions #5

Updated by Vincent MEMBRÉ 2 months ago

  • Target version changed from 7.0.9 to 7.1.7
Actions #6

Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 7.1.7 to 7.1.8
Actions #7

Updated by Vincent MEMBRÉ 1 day ago

  • Target version changed from 7.1.8 to 7.1.9
Actions

Also available in: Atom PDF