forked from brmlab/brmbar-github
		
	sample crontab file
This commit is contained in:
		
							parent
							
								
									1f3f1cdd8f
								
							
						
					
					
						commit
						e2e6632df0
					
				
					 3 changed files with 24 additions and 0 deletions
				
			
		
							
								
								
									
										3
									
								
								brmbar3/dluhy.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								brmbar3/dluhy.sh
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| p1=`echo -n "brmbar - dluhy: "; echo "SELECT name, crbalance FROM account_balances WHERE acctype = 'debt' AND crbalance < -100 AND name NOT LIKE '%overflow%' AND name NOT LIKE 'sachyo' ORDER BY crbalance ASC" | psql brmbar | tail -n +3 | grep '|' | tr -s " " | sed -e "s/ |/:/g" -e "s/$/;/" | tr -d "\n"` | ||||
| p2=`echo "SELECT sum(crbalance) FROM account_balances WHERE acctype = 'debt' AND crbalance < 0 AND name NOT LIKE '%overflow%' AND name NOT LIKE 'sachyo'" | psql brmbar | tail -n +3 | head -n 1 | tr -s " "` | ||||
| echo "$p1 total$p2 Kc" | ssh -p 110 -i /home/brmlab/.ssh/id_rsa jenda@coralmyn.hrach.eu  | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 brmbar
						brmbar