[OpenIndiana-discuss] command will not run from cron but will from CLI

Rich Teer rich at richjen.com
Mon May 9 19:10:30 UTC 2016


On Mon, 9 May 2016, david at kosmosisland.com wrote:

> I have not been able to get even a simple command to run from cron.  For a
> test I created this script:
> 
> #!/bin/sh
> 
> export PATH="/usr/bin:/usr/sbin:/root"

/bin/sh doesn't support that nomenclature for exporting variables;
you have to define them in one statement and export them in another.
For example:

PATH="/usr/bin:/usr/sbin:/root"
export PATH

-- 
Rich Teer, Publisher
Vinylphile Magazine

www.vinylphilemag.com



More information about the openindiana-discuss mailing list