1
ps ax | grep "nginx: master" | xargs -I % ruby -e 'exec "sudo kill #{"%".split(/\s/).first}"'

Bash kill nginx master proces

by we4tech, June 27, 2008 16:32, 9 refactorings, tagged with kill nginx master process

hi,
i am not expert on lin...

4bb774de244da2d6e7f39a189b905077 Talk
1
2
3
4
#!/bin/bash
for ((i=0;i<=17;i+=1))
         do
...

Bash For Loop using Awk

by roxannspencerolsen.blogspot.com, May 08, 2008 20:38, 1 refactoring

I an working on a script th...

Avatar Talk
1
2
3
4
SCRIPT="gen_${1}.sql"
echo "--gen_${1}.sql" > $SCRIPT
typeset -i counter
...

Bash Slow bash for loop.

by furtive, February 07, 2008 19:57, 6 refactorings, tagged with bash, speed, loop

Here's a quick and dirty ba...

Avatar Talk
1
2
3
4
#!/bin/bash
# Host checker 0.6
# original idea by no0tic
...

Bash Host checker

by motoplux, November 24, 2007 12:18, 1 refactoring, tagged with Host, checker, ping

A simple bash script that s...

075c21d01eed610dc6f6c27a0bf50091 Talk
1
2
3
4
tab() # new tab from current dir
{
osascript -e "
...

Bash Open a new tab in current d...

by macournoyer, October 04, 2007 18:07, 2 refactorings

Here's a small script I wro...

Bfec5f7d1a4aaafc5a2451be8c42d26a Talk