liangsai12 / crontab

Magisk crontabs
10 stars 2 forks source link

mktouch #1

Open lapinpt opened 6 years ago

lapinpt commented 6 years ago

REDMI NOTE 5 MIUI10

mktouch /data/crontabs/root

sh: mktouch: not found

function?

mktouch() {
    if [ $# -lt 1 ]; then
        echo "Missing argument";
        return 1;
    fi

    for f in "$@"; do
        mkdir -p -- "$(dirname -- "$f")"
        touch -- "$f"
    done
}
lapinpt commented 6 years ago
# mkdir -p '/data/crontabs' ; touch '/data/crontabs/root'
# Test log date every 5 minutes
# echo '*/5 * * * * date > /sdcard/cronlogdate.txt' >> /data/crontabs/root
liangsai12 commented 5 years ago

How to get the local time zone?

acooler15 commented 4 years ago

How to get the local time zone?

getprop persist.sys.timezone试试