Repository Public
1#!/bin/bash2# =============================================================================3# SP BOUCHER | INFRASTRUCTURE & AUTOMATION4# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project : FB Ka Automation8# File : li_run_all.sh9# Repository : https://git.spboucher.ai/fb-ka-automation10# Created : 2026-12-0111# Last Modified : 2026-12-0112#13# Author : Simon-Pierre Boucher14# Position : Professor of Finance15# Institution : Université du Québec en Outaouais (UQO)16# Organization : SP Boucher17# Website : https://spboucher.ai18# Git : https://git.spboucher.ai19#20# Preferred Contact: contact@spboucher.ai21# Technical Contact: dev@spboucher.ai22# Security/Admin : admin@spboucher.ai23#24# Copyright (c) 202625# Simon-Pierre Boucher26# All rights reserved where applicable. This file is governed by the27# applicable project license, copyright notices and relevant law.28# Existing third-party rights and notices remain unaffected.29#30# License : None specified (no license file in this repository)31#32# Do not embed credentials, private keys, access tokens,33# certificates or confidential personal information.34#35# =============================================================================36# END OF SP BOUCHER SOURCE HEADER37# =============================================================================3839set -u40LOG=/tmp/li_posts.log41: > "$LOG"42P=~/Desktop/fb-ka-automation/posts43for f in $P/22-stats-lou-ka.txt $P/23-stats-immo-ka.txt $P/24-stats-vrai-prix.txt $P/25-stats-auto-ka.txt $P/26-stats-fabri-ka.txt $P/27-stats-food-ka.txt $P/28-stats-resto-ka.txt $P/29-stats-sorti-ka.txt $P/30-stats-crea-ka.txt; do44 echo "=== $(basename "$f") ===" >> "$LOG"45 if ~/Desktop/fb-ka-automation/li_post_text.sh "$f" >> "$LOG" 2>&1; then46 echo "SUCCESS $(basename "$f")" >> "$LOG"47 else48 echo "FAILED $(basename "$f")" >> "$LOG"49 fi50 sleep 2551done52echo "=== TERMINÉ ===" >> "$LOG"53