[Trennmuster] neues Skript patgen-list-diff.sh

Dennis Heidsiek dennis.heidsiek at googlemail.com
Do Apr 19 05:29:03 CEST 2012


Hallo allerseits,


Stephan Hennig ſchrieb am 18.04.2012 18:41 Uhr:
> Wie kann man also innerhalb eines Skripts die Kontrolle vollständig an ein anderes Skript übergeben, so dass das ursprüngliche Skript komplett beendet ist?

Geht das nicht einfach mit exec anderes-script.sh?

> This shell builtin replaces the current process with a specified command. Normally, when the shell encounters a command, it forks off a child process to actually execute the command. Using the exec builtin, the shell does not fork, and the command exec'ed replaces the shell. When used in a script, therefore, it forces an exit from the script when the exec'ed command terminates.
>
> http://tldp.org/LDP/abs/html/internal.html#EX54


Viele Grüße,
Dennis-ſ





Mehr Informationen über die Mailingliste Trennmuster