Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

loading modules from cron job

Tags:

cron

I've got a cronjob that executed a shell script Inside my shell script i do a module load tww/perl

but it gives me

module: command not found

what can i do? I have at least 10 modules I need to load

like image 412
user391986 Avatar asked May 31 '26 22:05

user391986


1 Answers

Well, I'm late but replacing

#!/bin/bash

by

#!/bin/bash -l

works for me.

like image 53
Satish Avatar answered Jun 04 '26 11:06

Satish



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!