Timeline for Find a file and execute a command in the file's directory
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 19, 2015 at 5:13 | comment | added | Ric F | Good to hear! Keep in mind that there are some security concerns, especially if the above gets run by root in any user-controlled directories, as they could create their own scripts and have them run as root, but I'll assume that you are on top of that. | |
| Mar 19, 2015 at 5:07 | vote | accept | SFbay007 | ||
| Mar 19, 2015 at 5:07 | comment | added | SFbay007 | Changed the $PATH to not include . and it worked..thanks! | |
| Mar 19, 2015 at 5:01 | comment | added | SFbay007 | I get this: find: The current directory is included in the PATH environment variable, which is insecure in combination with the -execdir action of find. Please remove the current directory from your $PATH (that is, remove "." or leading or trailing colons) | |
| Mar 19, 2015 at 4:12 | history | answered | Ric F | CC BY-SA 3.0 |