Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- T_NOW=$(date -d now "+%s")
- T_START=$(date -d last-month +"%s")
- T1=$(lncli fwdinghistory --start_time=$T_START --end_time=$T_NOW | grep "last_offset_index")
- T_START=$(date -d last-week +"%s")
- T2=$(lncli fwdinghistory --start_time=$T_START --end_time=$T_NOW | grep "last_offset_index")
- T_START=$(date -d yesterday +"%s")
- T3=$(lncli fwdinghistory --start_time=$T_START --end_time=$T_NOW | grep "last_offset_index")
- echo "Payments Routed"
- echo "Month: "$T1
- echo "Week : "$T2
- echo "Today: "$T3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement