For When You Can't Have The Real Thing
[ start | index | login ]
start > Fedora > 31 > Environment Modules > cron

cron

Created by dave. Last edited by dave, 4 years and 23 days ago. Viewed 920 times. #1
[edit] [rdf]
labels
attachments
(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 [...]

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt