Incorrectly formatted cron job

Bug #1861690 reported by Dan MacDonald
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Server
New
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)
information type: Proprietary → Public
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.