delorie.com/archives/browse.cgi | search |
<http://cygwin.com/acronyms/#TOFU> liora milbaum wrote: > Dave Korn wrote: >> On 31 August 2006 12:43, Liora Milbaum wrote: >> >>> I found a solution to my problem. As soon as I changed the crontab >>> command to: >>> * * * * * bash --login -c 'perl -e "use GD;"' >& /usr/tmp/test.log >>> >>> It worked. >> >> Ah, your path wasn't set so it couldn't find the dll; I guess your >> .bashrc >> was adding the necessary directory? You could probably also fix it by >> adding >> the relevant directory to the %PATH% setting in the windows system >> environment >> variables, because then it should be part of $PATH for any cygwin process >> that >> starts, regardless of whether you run a shell and use a startup script. >> > I don't have a .bashrc file and I tried adding the path to the dll to the > PATH environment variable. > It didn't helped. The solution I listed bellow is currently the only one > that works for me. Order and placement are important here. You would need to make sure that the DOS equivalent of '/usr/bin' was added to the path cron sees before it is launched. You could either specify this as a parameter to the installation of the cron service service (see the help for 'cygrunsrv') or add it to your system-wide path in the Windows GUI. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |