Sidehistorik
This lists my movies - first in alfabetical order, then after timestamp (for the movie file)
On the NAS:
(A prerequisite in to have ssh keys configured)
Kodeblok |
---|
#!/bin/bash echo "NAS Movielist - My DVD/BluRay collection \\\\ \\\\ {toc} \\\\ "> /tmp/wiki echo "h1. Alfabetical " >> /tmp/wiki ls /media/Movies/ | sed 's/.m4v//g' >> /tmp/wiki echo "h1. By timestamp " >> /tmp/wiki ls -t /media/Movies/ | sed 's/.m4v//g' >> /tmp/wiki ssh myserver.site.dk "~/scripts/addPageContent.sh familieblog 'Movilist for my NAS' '`cat /tmp/wiki`'" |
...
On the Confluence Server:
(A prerequisite in
to have the Atlassian CLI configured)
Kodeblok | ||||
---|---|---|---|---|
| ||||
#!/bin/bash
Space=$1
PageTitle=$2
html=$3
/opt/atlassian-cli/confluence.sh --action storePage --space "$Space" --title "$PageTitle" --content "$html" |