this post was submitted on 31 Mar 2025
9 points (100.0% liked)

Chile

754 readers
11 users here now

Comunidad general de Chile para Feddit.cl

founded 2 years ago
MODERATORS
 

Este hilo será renovado cada lunes

you are viewing a single comment's thread
view the rest of the comments
[–] skrlet13 2 points 3 weeks ago* (last edited 3 weeks ago)

A ver

curl -qsSf --request POST \
     --url https://feddit.cl/api/v3/post \
     --header 'accept: application/json' \
     --header 'authorization: Bearer $(TOKEN)' \
     --header 'content-type: application/json' \
     --data '
{
  "community_id": 2,
  "name": "Discusión Random Semanal - Semana del $(date +%d-%m-%y)",
  "language_id": 39
}
'

Prueba eso con cron, de nada (recuerda que debes crear el token)

Edit: o un servicio de ejecución única, quizá no moleste el $(date +%d-%m-%y) así