Advertisement
hackbyte

cronstarter.sh - simple script for some reasons..

Mar 5th, 2016
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/bin/bash -v
  2. SHELL="/bin/bash"
  3. LOGGER=$(which logger)
  4. NOHUP=$(which nohup)
  5. SCRIPTS="sshtunnel1.sh"
  6. MESSAGE=""
  7.  
  8. for SCRIPT in $SCRIPTS ; do
  9.  $NOHUP /root/bin/$SCRIPT >/dev/null 2>&1 & MYFEEDBACK=$?
  10.  MESSAGE="${MESSAGE} started ${SCRIPT}:$? ${MYFEEDBACK}.... "
  11. done
  12. MESSAGE="${MESSAGE} ... done"
  13. $($LOGGER -i -t "$0" "${MESSAGE}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement