Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash -v
- SHELL="/bin/bash"
- LOGGER=$(which logger)
- NOHUP=$(which nohup)
- SCRIPTS="sshtunnel1.sh"
- MESSAGE=""
- for SCRIPT in $SCRIPTS ; do
- $NOHUP /root/bin/$SCRIPT >/dev/null 2>&1 & MYFEEDBACK=$?
- MESSAGE="${MESSAGE} started ${SCRIPT}:$? ${MYFEEDBACK}.... "
- done
- MESSAGE="${MESSAGE} ... done"
- $($LOGGER -i -t "$0" "${MESSAGE}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement