crontab post method
Posted lshan
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了crontab post method相关的知识,希望对你有一定的参考价值。
Step by step for crontab stop setup Sea@sea:/etc/lazada$ sudo crontab -e 1.Edit cron job 0 */6 * * * curl -X POST -d @/etc/lazada/lazada_tracking.txt http://localhost:8080/booking/rs/LazadaService/post --header "Content-Type:application/json" Chnage it like : #0 */6 * * * curl -X POST -d @/etc/lazada/lazada_tracking.txt http://localhost:8080/booking/rs/LazadaService/post --header "Content-Type:application/json" 2.restart cron job Sea@sea:/etc/lazada$ sudo /etc/init.d/cron reload Sea@sea:/etc/lazada$ sudo /etc/init.d/cron restart 3.check crontab if succeed start Sea@sea:/etc/lazada$ sudo ps -ef| grep cron root 30871 1 0 12:22 ? 00:00:00 cron
/etc/lazada/lazada_tracking.txt json 数据--> 用于post
以上是关于crontab post method的主要内容,如果未能解决你的问题,请参考以下文章
java.lang.NullPointerException: Attempt to invoke virtual method ‘int android.database.sqlite异常(代码片段
java.lang.IllegalStateException: Method get not annotated with HTTP method type (ex. GET, POST);(代码片