subprocess?
发自我的小米手机
Avnesh Shakya 编写:
>hi,
> I want to run a another file inside a ached.add_cron_job(..). how is it
> possible, please help me, I have a file otherFile.py for execution inside
> current file.
>I know it is very easy question but i m unable to get anything, please help me.
make sure data.json is absolute path
make sure you test it directly without crontab
in the crontab, execute the script in such way, python scripty > /tmp/log 2>&1
check the log
发自我的小米手机
Avnesh Shakya 编写:
>hi,
>i want to run python script which generating data into json fromat, I am
> u