Incorrectly formatted cron job

Bug #1861690 reported by Dan MacDonald on 2020-02-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Server
Undecided
Unassigned

Bug Description

One of the default cron jobs within /etc/cron.d/landscape-server (Update Alerts) looks like this:

*/5 * * * * landscape ( /opt/canonical/landscape/scripts/update_alerts.sh; /opt/canonical/landscape/scripts/landscape_profiles.sh; /opt/canonical/landscape/scripts/process_alerts.sh )

but if I try to run

landscape ( /opt/canonical/landscape/scripts/update_alerts.sh; /opt/canonical/landscape/scripts/landscape_profiles.sh; /opt/canonical/landscape/scripts/process_alerts.sh )

under Ubuntu 18.04 server's (default) bash shell I get the error:

bash: syntax error near unexpected token `/opt/canonical/landscape/scripts/update_alerts.sh'

Dan MacDonald (allcoms) on 2020-02-03
information type: Proprietary → Public
Dan MacDonald (allcoms) wrote :

That command doesn't work when run from an interactive shell but I don't see any errors in /var/log/syslog for it so I presume it is running fine and this can likely be closed.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers