I need a script made to capture data from some log files and upload them to my ftp server. I have some
This is what I have so far and it does not work:
#!/bin/bash -x
coin=`cat /mnt/export/jake/[login to view URL]`
screen -S miner -X stuff 'status^m'
sleep 3
minerstatus=`tail -n 1 /home/jake/"$coin"/"$coin"[login to view URL]`
echo $minerstatus
IPlan=`hostname -I | cut -d' ' -f1`
IPwan=`curl [login to view URL]; echo`
OUTPUTFILE="${HOSTNAME}[login to view URL]"
echo $OUTPUTFILE
echo "$HOSTNAME , $balance , $minerstatus , $IPlan , $IPwan" > /home/jake/${OUTPUTFILE}
I'd be happy to help.
Need to tell me:
- Specifically what data you want to capture from the log files
- What format to push them on the FTP
- FTP credentials (username & password)
- sample log file
It will take me about 4 hours or so to finish it.
Cheers!
Adam
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
4 freelancers are bidding on average $35 USD for this job
Hi
I am an devops engineer experienced in linux(centos,ubuntu) and shell scripting for more than 5 years. I can do this script for you to process and capture data from log file and update results to the required ftp server. please message to discuss further on this.
Thanks
Note-please check my profile fro past projects and reviews.
Hi,
I have 3+ years of industry experience with expertise in linux and scripting. I have done many projects like this in past. I can easily do this project for you on budget and in time.
Hope to hear from you.