cd %(workdir)s
[ -x %(bin)s/ligand_dock.%(binext)s ] || exit 1
%(bin)s/ligand_dock.%(binext)s @flags -database %(database)s -run:constant_seed -nodelay  2>&1 \
    | egrep -vf ../../ignore_list \
    > log

test "${PIPESTATUS[0]}" != '0' && exit 1 || true  # Check if the first executable in pipe line return error and exit with error code if so


#removes unwanted versioning info from silent file
sed -i.bak '/version/d' silent.out; rm silent.out.bak
