Skip to main content

cron

(2020-02-25)

Problem

The module command doesn't work in cron jobs.

Solution

You have to source the module init script before the aliases can be used.

eg:

#!/bin/bash

. /etc/profile.d/modules.sh
[...]