Crontab/Cronie not working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Crontab/Cronie not working

跳至解决方案
1,704 次查看
toanjunifer
Senior Contributor I

Hi,

I'm using iMX6S with Yocto. And my OS does have crontab/cronie. And I don't build that OS image, so I can't modify it. So I did a cross-compile version of cronie. I get a file executable which name crontab. I check and get:

ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=3d8a5ebf81249e88a8b93badbabf83c8fc1f2b9d, not stripped

I edit it via: $ crontab -e 

@reboot /home/root/loop
*/2 * * * * /home/root/cvtVid2Img

But it's not working. Did I missing something ?

What should I do now ?

Thank you so much,

Toan

标签 (1)
1 解答
1,621 次查看
toanjunifer
Senior Contributor I

In this case, cross-compile seems like not working. So I built a OS image and compare --> replace. And It works now. 

在原帖中查看解决方案

0 项奖励
3 回复数
1,622 次查看
toanjunifer
Senior Contributor I

In this case, cross-compile seems like not working. So I built a OS image and compare --> replace. And It works now. 

0 项奖励
1,621 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Dao,

I’m not very familiar with crontab but Open Embedded does support a Cron daemon for executing programs at set times.

You can add it by adding the cronie package. To do this you may add the following line on the conf/local.conf file inside your build directory:

 

IMAGE_INSTALL_append += " cronie "

 

You can find more information on the recipe description:

https://github.com/openembedded/openembedded-core/blob/zeus/meta/recipes-extended/cronie/cronie_1.5....

 

or cross-compiled cronie.

Regards

1,621 次查看
toanjunifer
Senior Contributor I

Hi Bio_TICFSL‌,

Thank you for your reply. Your reply is the same with Missing crontab in Yocto . Your answer is not focus on my question. I mean I cross-compiled cronie and not working at boot, I guess. 

0 项奖励