Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. bash-3.2$ /bin/bash /home/autobid/bin/execute_sync_media_queue_task.sh abbatch-0.0.1-distribution.zip
  2. 'home/autobid/bin/execute_sync_media_queue_task.sh: line 2: syntax error near unexpected token `
  3. 'home/autobid/bin/execute_sync_media_queue_task.sh: line 2: `isExecuteProcess()
  4.  
  5. #!/bin/sh
  6. isExecuteProcess()
  7. {
  8. pid_file_list=`ls ~/sync_media_queue_task.pid 2>/dev/null`
  9.  
  10. for pid_file in ${pid_file_list}
  11. do
  12. kill -0 `cat ${pid_file}` > /dev/null 2>&1
  13. if [ $? = 0 ]; then
  14. echo "[${pid_file}] executeing... "
  15. return 1;
  16. else
  17. rm ${pid_file} > /dev/null 2>&1
  18. fi
  19. done
  20.  
  21. return 0;
  22. }
  23.  
  24. isExecuteProcess
  25. if [ $? != 0 ]; then
  26. exit 1;
  27. fi
  28.  
  29. -rwxr-xr-x 1 autobid autobid 457 Jul 27 04:07 execute_sync_media_queue_task.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement