ABC=`ps|grep watchdog_rt|grep -v grep|cut -c 1-5`
if [ -n "$ABC" ]; then
kill -9 $ABC ; \
fi
[Bash] Kill the current PID
# Kill the current PID
Related Posts:
[grep] If grep not success then return error message [grep] If grep not success then return error message grep -In "cat" ./a.xml && echo "happy" >> Bingo.log || echo &q… Read More
[Bash] How to pass string with space as parameter Create A ABC.htm <html> <head> <title>are you ready</title> Create a Function Script #!/bin/bash Re() { … Read More
[Arch Linux][USB][Update 2013-05-17][Auto Script] Install arch linux 2013 on the USB stick [Arch Linux][USB][Update 2013-05-17][Auto Script] Install arch linux 2013 on the USB stick Following Script Download #!/bin/sh # set -x # S… Read More
[Bash][Sed] How to sed \n to \\n in txt [Bash][Sed] How to sed \n to \\n in txt Original="\\\n" After="\\\\\\\n" sed 's|'"$Original"'|'"$… Read More
[Bash] Put all function into one file [Bash] Put all function into one file Create three bash file call A B C A : #!/bin/bash print1() { echo $1 } print2… Read More
0 意見:
張貼留言