Skip to content

JohnFawkes/crontab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crontab

Description

Easy to use crontabs

How to use
use crontab command in /data/crontabs/root
crontab examples:
Every 5 minutes to log date
*/5 * * * * date >sdcard/log.txt

Changelog

v1.0 new

Requirements

  • Requirement Magisk

Instructions

Attention: the TimeZone is shanghai.
I do not know how to use tzselect .
please Manually change " export TZ=Asia/Shanghai " to your zone.
You don't need this file'/data/cronsh/zd.sh' if you like.

☆☆☆tips for Auto.js☆☆
Autojs is a APP to run js on Android.

  1. 在 /data/crontabs/root下 写上
    # on 8:15 to do
    15 8 * * * /data/cronsh/zd.sh

  2. 在 /data/cronsh/zd.sh下 写上

am start -n com.stardust.scriptdroid/.external.open.RunIntentActivity -d /sdcard/脚本/脚本名字.js -t application/x-javascript

这样你的脚本就自动执行了

Links

crontab editing

autojs

Releases

No releases published

Packages

No packages published

Languages