this makes sense ... I don't want t=o give www a shell ;-)I fixed my problem with absolute =paths ... thanks anywayThierry---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.usAm 25.01.2012 um 17:51 schrieb William DeVaul: ---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.usI think the search p=aths are determined by the shell that the user runs. =A0I'm guessing We=bDNA runs as the user apache (or _www for OSX). =A0I doubt that user has mo=re than the most basic shell available and likely no paths set up. =A0You m=ight be able to create the home directory for that user and the environment=al variables but I've never tried. =A0=A0For example, for imagemagick, I need to specify the full pat=h to /usr/bin/convert in WebDNA scripts rather than just convert as I would= for myself when I'm logged in as the user.=A0Likely it is easier to determine the server you're on and use full path=s based on that information or to configure the servers identically (at lea=st from a directory perspective. =A0Even symlinks could work. =A0BillOn Wed, Ja=n 25, 2012 at 11:28 AM, Thierry Almy <lists@almy.ch> wrote:
<=blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">If I have to hack it like this, I'd prefer to list my different servers= in a global db and store the paths there.
Then I can build the path to IM depending on the server I am and my CMS tem=plates will work on all servers ...
Do we really have to work with full paths in the shell?
...
Thierry
Am 25.01.2012 um 16:19 schrieb Donovan Brooke:
> Thierry Almy wrote:
>> We'd like to set environment variables to be accessible by she=ll commands from WebDNA.
>>
>> The problem is, we are working with ImageMagick on different serve=rs where IM is installed on different locations.
>> If I use the hole path to the "convert" command it works= fine, but I'd like to just use the command itself without a path.
>>
>> We added the path in /etc/profiles and /etc/paths
>>
>> The IM commands are found in the terminal but not inside the WebDN=A shell tags ... where do we define the paths for apache/lighttpd/webdna?>> Or do we really have to work with full paths to the commands?
>>
>> Thierry
>
>
> Hi Thierry,
> Instead of environment variables, maybe functions.
>
> ..ie., have a vunction called [convert ..], where it first looks for t=he command within known paths from the different inviro's?
>
> Just a thought.
> Donovan
>
> --
> Donovan Brooke
> Euca Design Center
> www.euca.us
> www.keepitt=urning.co
> ---------------------------------------------------------
> This message is sent to you because you are subscribed to
> the mailing list <talk@webdna.us>.
> To unsubscribe, E-mail to: <talk-leave@webdna.us>
> archives: http://mail.webdna.us/list/talk@webdna.us
> Bug Reporting: =support@webdna.us
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <ta=lk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: suppo=rt@webdna.us
|
this makes sense ... I don't want t=o give www a shell ;-)I fixed my problem with absolute =paths ... thanks anywayThierry---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.usAm 25.01.2012 um 17:51 schrieb William DeVaul: ---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.usI think the search p=aths are determined by the shell that the user runs. =A0I'm guessing We=bDNA runs as the user apache (or _www for OSX). =A0I doubt that user has mo=re than the most basic shell available and likely no paths set up. =A0You m=ight be able to create the home directory for that user and the environment=al variables but I've never tried. =A0=A0For example, for imagemagick, I need to specify the full pat=h to /usr/bin/convert in WebDNA scripts rather than just convert as I would= for myself when I'm logged in as the user.=A0Likely it is easier to determine the server you're on and use full path=s based on that information or to configure the servers identically (at lea=st from a directory perspective. =A0Even symlinks could work. =A0BillOn Wed, Ja=n 25, 2012 at 11:28 AM, Thierry Almy <lists@almy.ch> wrote:
<=blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">If I have to hack it like this, I'd prefer to list my different servers= in a global db and store the paths there.
Then I can build the path to IM depending on the server I am and my CMS tem=plates will work on all servers ...
Do we really have to work with full paths in the shell?
...
Thierry
Am 25.01.2012 um 16:19 schrieb Donovan Brooke:
> Thierry Almy wrote:
>> We'd like to set environment variables to be accessible by she=ll commands from WebDNA.
>>
>> The problem is, we are working with ImageMagick on different serve=rs where IM is installed on different locations.
>> If I use the hole path to the "convert" command it works= fine, but I'd like to just use the command itself without a path.
>>
>> We added the path in /etc/profiles and /etc/paths
>>
>> The IM commands are found in the terminal but not inside the WebDN=A shell tags ... where do we define the paths for apache/lighttpd/webdna?>> Or do we really have to work with full paths to the commands?
>>
>> Thierry
>
>
> Hi Thierry,
> Instead of environment variables, maybe functions.
>
> ..ie., have a vunction called [convert ..], where it first looks for t=he command within known paths from the different inviro's?
>
> Just a thought.
> Donovan
>
> --
> Donovan Brooke
> Euca Design Center
> www.euca.us
> www.keepitt=urning.co
> ---------------------------------------------------------
> This message is sent to you because you are subscribed to
> the mailing list <talk@webdna.us>.
> To unsubscribe, E-mail to: <talk-leave@webdna.us>
> archives: http://mail.webdna.us/list/talk@webdna.us
> Bug Reporting: =support@webdna.us
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <ta=lk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: suppo=rt@webdna.us
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...