File: spawn.sh

package info (click to toggle)
libmojo-ioloop-readwriteprocess-perl 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 540 kB
  • sloc: perl: 4,655; sh: 101; makefile: 2
file content (12 lines) | stat: -rwxr-xr-x 175 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

sleep 3

wd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo $wd
die() { echo "$*" 1>&2 ; exit 1; }

$wd/child.sh &
$wd/child.sh &

die "spawner: 2 Boom"