Solaris custom environment variables in crontab
826510Jul 12 2011 — edited Jul 13 2011Hi everyone,
I am searching a way to use custom variable on my crontab.
In fact, I need to launch a binary file which will use the "swap" command, but the swap command is not in the PATH of the crontab.
I know that on Linux it's possible to define directly a variable in the crontab, but in solaris it fails....
I tried this (for test) : env > /cron.env
and the output was :
HOME=/
LOGNAME=root
PATH=/usr/sbin:/usr/bin
SHELL=/usr/bin/sh
TZ=Europe/Paris
I also tried : source /etc/profile ; env > /cron.env
but the output was the same.
does anybody knows a way to define custom variable in the solaris crontab?
thx a lot in advance