Compare commits

..

No commits in common. "a25a79231e5acf021d1c934a0bfda4f17020acbf" and "c7bb0b9df9a376c34e48683c9ff5ac83f767346b" have entirely different histories.

1 changed files with 3 additions and 9 deletions

View File

@ -2,14 +2,13 @@
#############################
# clean data and filter some to rediect to new file
# env: rlx linux with origin-awk and /bin/sh
# env: rlx linux with origin-awk
# Author: Liao
# modify time: 2022/2/18 16:05 (+8:00)
#############################
BEGIN{
fileSize = 1024*1024*1
upload_ip = "192.168.1.5"
fileSize = 1024*1
uploadCount = 0
# filePath = "/data/log_dir/mySimpleLog"
@ -81,16 +80,11 @@ function checkFileSize(){
function splitAndUpload(){
newFileName = "mySimpleLog_"systime()
print "uploading..."
ret = system("mv /data/log_dir/mySimpleLog /data/log_dir/"newFileName" && cd /data/log_dir/ && tftp "upload_ip" -p -l "newFileName" > /dev/null && rm "newFileName)
ret = system("mv /data/log_dir/mySimpleLog /data/log_dir/"newFileName" && cd /data/log_dir/ && tftp 192.168.1.5 -p -l "newFileName" && rm "newFileName)
if(!ret){
print "upload success!"
uploadCount++
}else{
print "upload fail!"
}
}
function notify2python(){
# system("curl http://"upload_ip"/api")
}