No executables in /tmp

Bryan Sant bryan.sant at gmail.com
Mon Mar 27 15:44:03 MST 2006


On 3/27/06, Bryan Sant <bryan.sant at gmail.com> wrote:
> #!/bin/bash
> if [ -z "`lsof -p $$ | awk '{print $9}' | grep ^/tmp`" ] && [ -z
> "`echo $PWD | grep ^/tmp`"];
> then /usr/bin/perl-real $@; fi

Wo.  I mean:

#!/bin/bash

if [ -z "`lsof -p $$ | awk '{print $9}' | grep ^/tmp`" ] \
    && [ -z "`echo $PWD | grep ^/tmp`"];
  exec /usr/bin/perl-real $@;
fi

-Bryan



More information about the PLUG mailing list