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

2016-05-09 Thread david
> On Mon, May 9, 2016 at 8:01 PM, 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/echo "test" > /root/test.log >> >> It runs from

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

2016-05-09 Thread Peter Tribble
On Mon, May 9, 2016 at 8:01 PM, 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/echo "test" > /root/test.log > > It runs from the command line

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

2016-05-09 Thread Rich Teer
On Mon, 9 May 2016, da...@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

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

2016-05-09 Thread James Carlson
On 05/09/16 15:01, da...@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/echo "test" > /root/test.log > > It runs from the command line but does not

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

2016-05-09 Thread david
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/echo "test" > /root/test.log It runs from the command line but does not from cron: 55 11 9 * * * /root/test The log shows: > CMD: *