Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bash-3.2$ /bin/bash /home/autobid/bin/execute_sync_media_queue_task.sh abbatch-0.0.1-distribution.zip
- 'home/autobid/bin/execute_sync_media_queue_task.sh: line 2: syntax error near unexpected token `
- 'home/autobid/bin/execute_sync_media_queue_task.sh: line 2: `isExecuteProcess()
- #!/bin/sh
- isExecuteProcess()
- {
- pid_file_list=`ls ~/sync_media_queue_task.pid 2>/dev/null`
- for pid_file in ${pid_file_list}
- do
- kill -0 `cat ${pid_file}` > /dev/null 2>&1
- if [ $? = 0 ]; then
- echo "[${pid_file}] executeing... "
- return 1;
- else
- rm ${pid_file} > /dev/null 2>&1
- fi
- done
- return 0;
- }
- isExecuteProcess
- if [ $? != 0 ]; then
- exit 1;
- fi
- -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