Opened 7 years ago

Last modified 7 years ago

#887 new defect

SimFactory problems when running from cron

Reported by: Ian Hinder Owned by: Erik Schnetter
Priority: minor Milestone:
Component: SimFactory Version:
Keywords: Cc:


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?

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by Erik Schnetter

"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.

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Erik Schnetter.
Next status will be 'review'.
as The resolution will be set.
to The owner will be changed from Erik Schnetter to the specified user.
Next status will be 'confirmed'.
The owner will be changed from Erik Schnetter to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.