Gibt es ein Shell Befehl, um ein 2. Script zu starten, ohne auf deren ende zu warten?
also so
#!/bin/bash
Job1.sh # das Script arbeitet ca. 30 Minuten
Job2.sh # ohne auf job1 zu waren soll hier weiter gemacht werden.
...
Shellscript startet 2. Script und arbeitet weiter?
Re: Shellscript startet 2. Script und arbeitet weiter?
Bash only: http://tldp.org/LDP/abs/html/x9644.html
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: Shellscript startet 2. Script und arbeitet weiter?
Wenn Du eine generische (POSIX Shell) Lösung brauchst, schau Dir mal den Quellcode von Poudriere an - insbesondere die Datei src/share/poudriere/include/parallel.sh sowie die Verwendung der Funktion parallel_start in src/share/poudriere/common.sh. Dauert zwar einen Moment, da durchzusteigen (ist halt eine umfangreiche Software), aber es lohnt sich...
“Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying 'End-of-the-World Switch. PLEASE DO NOT TOUCH', the paint wouldn't even have time to dry.” — Terry Pratchett, Thief of Time