views:

270

answers:

2

There was a recent change on the server I do most of my work on and all PHP exec()'s now need absolute paths. Its faster than asking IT to ask it here.

So, does anyone know where grep is by default?

+1  A: 

Should be in /bin/grep

Spidey
+3  A: 

For future use you should familiarize yourself with the "which" command. It will go through your default search path looking for an executable. Normally the system paths will be included therein. Use the -a option to find all versions of a program on your path.

So "which grep" should do the job if your path is set up correctly.

Duck
I don't have ssh access to this server.
Shadow