Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Solaris custom environment variables in crontab

826510Jul 12 2011 — edited Jul 13 2011
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 10 2011
Added on Jul 12 2011
4 comments
1,306 views