Your technology certification is waiting. Enroll in Cloud Class ®
This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.
kill -9 `cat /var/tmp/mybgproc.pid`
Open in new window
# a sample shell script to illustrate usage of PID file
# save this script's PID in a file
echo $$ > /var/tmp/myscript.pid
# make sure PID file will get removed when we get killed:
trap 'echo "I got killed!"; rm -f var/tmp/myscript.pid' 2 3
# this is a loop that runs forever
while : ; do sleep 60; done
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.