Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cnmzdk
delete
djx
ethan2000
ewuzxl
extrastu
fack
feiyu
feng
forfunfor
format
fqy12300
freebacao
g
glmd
hacave7336
hainan
haiyan
hb0730
heimiao
henry1
iHao
iHaoo
imozart
itabas016
jasper2007111
jh_personal@163.com
jingyu
k960128
king
kotone
lanruosi
lcq
ldc
leela
lengthmin
leslie
lonelyfish
longvase
lpp
lsxxwsy
lyzf0413
moe
moron
myuser
nan_include
neoyu
nianhongmin
none
onll12
pilipala
pqlwzs
proxy
ray
rsalive
rssalex
ryanldun
samot
shpkng
shyray
slain
snsnko
sorke
tao
tudouni
tuzhq
user
userrss
v2ch
wddzzz
wendao
wendaoliu
wendell
wghai
wps352
wr
wssx
xderam
xioaka
xiongjunhan
ydx@outlook.my
yfgeek
yingu
zwandlp
@alexkuang0
Copy link
Author

alexkuang0 commented Feb 26, 2021

Cron:

30 4 * * 5 php ./cli/user-info.php | awk -F '|' '/\|/{ gsub(/(^[ \t]+|[ \t]+$)/, "", $2); gsub(/(^[ \t]+|[ \t]+$)/, "", $8); gsub(/(^[ \t]+|[ \t]+$)/, "", $9); if ($8 == 1 && $9 == 0 ) { print $2 } }' | xargs -n1 php ./cli/delete-user.php --user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment