J'ai un script bash qui exécute un autre script bash, cependant le premier bashscript n'attend pas que le second se termine avant de continuer, comment puis-je le forcer attendre?Script Bash Appelle un autre script bash et attend qu'il se termine avant de continuer
Par exemple:
#!/bin/bash
# first.sh
#call to secondary script
sh second.sh
echo "second.sh has completed"
echo "continuing with the rest of first.sh..."
La façon dont il est maintenant, il fonctionnera second.sh, et continuer, sans attendre second.sh pour terminer.
Il faut attendre; est-ce vraiment tout votre script? –