SimFactory problems when running from cron

Issue #887 new
Ian Hinder created an issue

When running from a cron job, the user's profile has not been set up in the usual way. I have to source /etc/profile on Datura to get things like qsub and qstat on the path. Should simfactory do something about this?

Keyword:

Comments (1)

  1. Erik Schnetter
    • removed comment

    "sim --remote X ..." usually loads a different than "sim login X; ...". I tend to add code to the "envsetup" MDB entry to correct for this.

    One has to be careful to not just source /etc/profile, since this may overwrite people's setting in their /.profile.

    In your case, I would decide on a case-by-case basis whether to modify envsetup, or whether to source /etc/profile from the cron job.

  2. Log in to comment