Teljes szöveg:
- Hálózati okosságok @linux
- tml|link]]) ==== SSH okosságok ==== [[linux:ssh-exit-codes.sh|SSH exit kódok]] === SSH-n másolás köztes állomáson át === tar cvf - file1 file2 | ssh Koz
- TSM napi riport shell szkript @shell:riportok
- m /tmp/tsm_napi_riport_${DATUM}.html 2>/dev/null exit 1 } # trap keyboard interrupt (control-c) trap ... echo "Nincs hasznalhato sztanza a konfigomban." exit 1 fi echo "$HTML_MODUL_LABLEC" >> $TMP_HTML_FILE
- Linux okosságok
- tés ==== <file> #!/bin/sh if [ $? -ne 0 ]; then exit 1; fi ps -ef | grep '[n]mon ' | awk '{print $2}' ... fprintf(stderr, "%s\n", error); exit(1); } } real_main = main; ret
- Színes TSM szerver konzol @shell:riportok
- conc [szerver sztanza] <kiemelendeo szo>" exit 1 else SZERVERNEV=$1 fi echo $SZERVERNEV
- Szkriptelés @linux
- , else print err_msg and abort the script with an exit status of 1. Both forms nearly equivalent. The : ... itution.html]] ==== Gyakori BASH RC kódok ==== ^Exit Code Number ^Meaning ^Example ^Comments^ |1 |Catc... m with $PATH or a typo| |128 |Invalid argument to exit |exit 3.14159 |exit takes only integer args in the range 0 - 255 (see first footnote)| |128+n |Fatal er
- TSM és OS adatgyűjtő TSM szerver felméréshez @shell:riportok
- tokat)" echo " -o : OS lekerdezesek futtatasa" exit 1 fi while [ "$1" ]; do if [ "$1" = "-t" ]; the... ni. Ellenorizd a konfigot a szkript fejleceben!" exit 1 fi echo "TSM-es lekerdezeseket futtatok
- TSM kliens riport shell szkript @shell:riportok
- ull rm $TMP_HTML_FILE 2>/dev/null exit 1 } # trap keyboard interrupt (control-c) trap c... 2>/dev/null rm $TMP_HTML_FILE 2>/dev/null exit 1 fi # Vegigmegyunk az osszes konfig fajlon, ami
- VMware image mentések riportja @shell:riportok
- @cimem.hu[,email2@cimem.hu]" echo exit 1 fi #Kivetel lista felolvasasa [[ ! -e $EXCEPTI
- ovm_functions.sh szkript @shell:oravm
- lszot ker):" ssh admin@localhost -p 10000 exit echo "Teszt kapcsolodas:" if [[ $... yom, ellenorizd mi lehet a gond!" exit 1 else echo "Sikeres!"
- Oracle VM CPU pin map @shell:oravm
- lszot ker):" ssh admin@localhost -p 10000 exit echo "Teszt kapcsolodas:" if [[ $... yom, ellenorizd mi lehet a gond!" exit 1 else echo "Sikeres!" ... trol fajl, vagy az utvonala hibas: $OVMC" exit 1 fi SCRIPT_VER=$(grep -oP '(?<=# OVM CPU PIN MAP... Készíts egy teljes mentést a CPU pin térképről.'; exit 1; } while read OVS; do while read VM
- TSM node replikacios iranyt forgato szkript @shell:replikacio
- hen echo "A $TMP_FILE munkaallomany nem irhato."; exit 1; fi touch $LOG_FILE if [[ $? -ne 0 ]]; then echo "A $LOG_FILE log allomany nem irhato."; exit 1; fi echo "-------------------------------------... 1 fajl nem letezik." log $red "Futas vege." exit 1 fi ;; -n) shift log $white "Vala... r! (-c|-d|-sy|-l)" log $red "Futas vege." help exit fi # Itt kezdodik a lenyeg grep -v '^$' $TMP_FIL
- SSH kulcs terítő szkript @shell
- ssword:" { send "$password\n"; } "added: 1" { exit 0 } "added: 0" { exit 1 } } </file> <file h lnx_copy_ssh_id.sh> #!/bin/bash echo -n "Add meg a jel
- Fizikai diszkeket átnevező szkript @shell:oravm
- | { echo "Add meg a konfig fajlt parameterkent."; exit 1; } ovm_cli "list PhysicalDisk" | awk -F' ' '/:/
- Fizikai diszkek tömeges mappelése VM(ek)hez @shell:oravm
- function ctrl_c() { echo -e $end exit } [[ -e $1 ]] || { echo "Add meg a konfig fajlt parameterkent."; exit 1; } while read LINE; do VDISK_NAME=$(echo $L
- Tömeges VM létrehozó szkript @shell:oravm
- | { echo "Add meg a konfig fajlt parameterkent."; exit 1; } while read LINE; do OVS_NAME... % metaadatot is foglalhat.${end}" exit 1 else echo -e "Repo teli