This problem was caused by some env values not include when run by
crontab, it's a common error for shell script writing . :)
Thanks, its working after adding this line :)
Chunky.
On Fri, Nov 23, 2012 at 11:24 AM, wd wrote:
> Add the following line before your crontab config
>
> source ~/.bashrc
>
>
>
> On Thu, Nov 22, 2012 at 5:59 PM, Chunky Gupta wrote:
>
>> Hi,
>> I have a python script :-
>>
>> ---c
Add the following line before your crontab config
source ~/.bashrc
On Thu, Nov 22, 2012 at 5:59 PM, Chunky Gupta wrote:
> Hi,
> I have a python script :-
>
> ---cron_script.py---
>
> import os
> import sys
> from subprocess import call
> print 'starting'
Hi,
I have a python script :-
---cron_script.py---
import os
import sys
from subprocess import call
print 'starting'
call(['hive', '-f',
'/mnt/user/test_query'],stderr=open('/mnt/user/tmp/error','w'),
stdout=open('/mnt/user/tmp/output','w'))
--