iele Abhängikeiten
- VIM und ps2pdf aus dem Gostscript Packet
* Hat auf Anhieb funktioniert
* ... g mit VIM und ps2pdf ====
Wir benötigen eine Postscript Dokument und können dann mit dem Tool "ps2pdf" mit Ghostscript ein PDF erzeugen.
D.h. wir müssen unser Text Dokument zuvor in PostScript wandeln, also quasi ins Filesystem ausdrucken.
l.
==== In welchen Verzeichnis wird das akuelle Script gestartet ====
In welchen Verzeichnis wird das akuelle Script gestartet:
<code bash>
# Home of the scrips
SCRIP... s Directory ${SCRIPTS} not exist"
echo "May be script not start in bash or over symlink?? "
exit 1
f... nicht richtig ist.
==== Timing und Debugging vom Script ====
<code bash>
#in Secunden
export PS4='+[${S
01 14 20 02 * /home/oragpi/scripts/call_rman_script.sh
</code>
see http://www.pantz.org/software/cro... ontab einmalig hinzufügen:
<code bash>
at now
>script.sh
# close and start the script with ^d
</code>
Ein Guter Generator => https://crontab-generator.org/... == Bash Scripting Examples =====
* [[linux:bash_script_snippets|Bash Snippets für Skripting]]
* http:
-
==== Playbook Beispiel - SQL*Plus aufrufen und Script ausführen ====
Unser Template kopieren:
<code ... nbaken auf dem Server liegen können.
Im Ansible Script wird dann mit "with_items" bzw. "with_subelements... /collections/ansible/builtin/file_module.html
- Script auf dem Server kopieren
- https://docs.ansibl... /collections/ansible/builtin/copy_module.html
- Script in SQL*Plus ausführen
- https://docs.ansible.
e yaml>
---
- name: Copy the Create Local Facts Script to the hosts
hosts: all
become: yes
become_... }}"
state: directory
- name: Copy Check Script
ansible.builtin.template:
src: templ... roup: root
mode: '0777'
</code>
Das Fact Script liegt dabei unter "templates/setLocalDBFacts.sh.j... nun über ein "oracle.fact" nur ein weiters Schell Script mit Sudo aufgerufen um das eigentliche Schell Skr