cron

Is there any way to have cron use the complete user config. When a command
is ran under cron it doesn’t have the same environment variable as when
logged in. For example the PATH isn’t pointing to
/usr/qnx630/host/qnx6/x86/usr/bin/…

I added . /etc/profile.d/qnxsdk.h ; to the cron command but that doesn’t set
everything.

Mario

Mario,

I don’t know if there is a way to get cron to do this directly,
but you could create an environment shell program, something like
this:

environ pgm=mypgm env_var1=abc env_var2=def, etc.

This program would then spawn your program with the right environment.