![]() |
Output:
Code:
macserver:/ root# /Cronnix.info.sh |
So, it's running as root, using sh, and these are the path's it is checking:
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin If your file is not in one of those paths, it will not find it. I would suggest putting it in /usr/local/bin , or editing the PATH declaration in /etc/profile to include your script directory. Make sure to type . profile after you change it, or nothing will happen till you reboot ( that's DOT SPACE profile , while inside the etc directory) |
use of:
Code:
. / |
One more addition
Hi this works for me just great - however what code do I need if I only want the script to email me if the search finds something.
If the search is blank then I do not want an email. |
| All times are GMT -5. The time now is 06:21 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.