Re: [WebDNA] OT, environment variables os x

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 108248
interpreted = N
texte = --20cf3056396decc63704b75d11fe Content-Type: text/plain; charset=ISO-8859-1 I think the search paths are determined by the shell that the user runs. I'm guessing WebDNA runs as the user apache (or _www for OSX). I doubt that user has more than the most basic shell available and likely no paths set up. You might be able to create the home directory for that user and the environmental variables but I've never tried. For example, for imagemagick, I need to specify the full path to /usr/bin/convert in WebDNA scripts rather than just convert as I would for myself when I'm logged in as the user. Likely it is easier to determine the server you're on and use full paths based on that information or to configure the servers identically (at least from a directory perspective. Even symlinks could work. Bill On Wed, Jan 25, 2012 at 11:28 AM, Thierry Almy wrote: > 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 > templates 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 shell > commands from WebDNA. > >> > >> The problem is, we are working with ImageMagick on different servers > 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 WebDNA > 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 the > command within known paths from the different inviro's? > > > > Just a thought. > > Donovan > > > > -- > > Donovan Brooke > > Euca Design Center > > www.euca.us > > www.keepitturning.co > > --------------------------------------------------------- > > This message is sent to you because you are subscribed to > > the mailing list . > > To unsubscribe, E-mail to: > > 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 . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > --20cf3056396decc63704b75d11fe Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I think the search paths are determined by the shell that the user runs. = =A0I'm guessing WebDNA runs as the user apache (or _www for OSX). =A0I = doubt that user has more than the most basic shell available and likely no = paths set up. =A0You might be able to create the home directory for that us= er and the environmental variables but I've never tried. =A0=A0

For 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.=A0

Likely 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. =A0
<= div>
Bill


On Wed, Ja= n 25, 2012 at 11:28 AM, Thierry Almy <lists@almy.ch> wrote:
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.keepittu= rning.co
> ---------------------------------------------------------
> This message is sent to you because you are subscribed to
> the mailing list <talk@webdna.us<= /a>>.
> To unsubscribe, E-mail to: <
talk-leave@webdna.us>
> archives: http://mail.webdna.us/list/talk@webdna.us
> Bug Reporting: support@webdna.us<= /a>

---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <
talk@webdna.us&g= t;.
To unsubscribe, E-mail to: <talk= -leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us

--20cf3056396decc63704b75d11fe-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] OT, environment variables os x (William DeVaul 2012)
  2. Re: [WebDNA] OT, environment variables os x (Thierry Almy 2012)
  3. Re: [WebDNA] OT, environment variables os x (William DeVaul 2012)
  4. Re: [WebDNA] OT, environment variables os x (Thierry Almy 2012)
  5. Re: [WebDNA] OT, environment variables os x (Donovan Brooke 2012)
  6. Re: [WebDNA] OT, environment variables os x (Donovan Brooke 2012)
  7. [WebDNA] OT, environment variables os x (Thierry Almy 2012)
--20cf3056396decc63704b75d11fe Content-Type: text/plain; charset=ISO-8859-1 I think the search paths are determined by the shell that the user runs. I'm guessing WebDNA runs as the user apache (or _www for OSX). I doubt that user has more than the most basic shell available and likely no paths set up. You might be able to create the home directory for that user and the environmental variables but I've never tried. For example, for imagemagick, I need to specify the full path to /usr/bin/convert in WebDNA scripts rather than just convert as I would for myself when I'm logged in as the user. Likely it is easier to determine the server you're on and use full paths based on that information or to configure the servers identically (at least from a directory perspective. Even symlinks could work. Bill On Wed, Jan 25, 2012 at 11:28 AM, Thierry Almy wrote: > 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 > templates 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 shell > commands from WebDNA. > >> > >> The problem is, we are working with ImageMagick on different servers > 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 WebDNA > 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 the > command within known paths from the different inviro's? > > > > Just a thought. > > Donovan > > > > -- > > Donovan Brooke > > Euca Design Center > > www.euca.us > > www.keepitturning.co > > --------------------------------------------------------- > > This message is sent to you because you are subscribed to > > the mailing list . > > To unsubscribe, E-mail to: > > 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 . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > --20cf3056396decc63704b75d11fe Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I think the search paths are determined by the shell that the user runs. = =A0I'm guessing WebDNA runs as the user apache (or _www for OSX). =A0I = doubt that user has more than the most basic shell available and likely no = paths set up. =A0You might be able to create the home directory for that us= er and the environmental variables but I've never tried. =A0=A0

For 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.=A0

Likely 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. =A0
<= div>
Bill


On Wed, Ja= n 25, 2012 at 11:28 AM, Thierry Almy <lists@almy.ch> wrote:
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.keepittu= rning.co
> ---------------------------------------------------------
> This message is sent to you because you are subscribed to
> the mailing list <talk@webdna.us<= /a>>.
> To unsubscribe, E-mail to: <
talk-leave@webdna.us>
> archives: http://mail.webdna.us/list/talk@webdna.us
> Bug Reporting: support@webdna.us<= /a>

---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <
talk@webdna.us&g= t;.
To unsubscribe, E-mail to: <talk= -leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us

--20cf3056396decc63704b75d11fe-- William DeVaul

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

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...

Related Readings:

Changing to a windows mounted share from a Mac OS X machine (2002) Showing Results Alphabetically in Columns (top to bottom) (2002) WebCatalog for Mac 2.0.1 Released (1997) Speed Test Results Dell 2650 Xeon 2.4ghz (2002) WebCat + IIS (2001) [OT] Mac WebCat 3 for IIS (2000) Major Security Hole (1998) date formatting for CC card expiration date check (1998) modified storedbuilder (was: show me your store) (2003) Converting Quotes in Javascript (2001) raw field names (2001) Speed Optimization - Mac (1997) WebCat2b12--[searchstring] bug (1997) Content-type:... (2000) math variable security [MEDIUM LONG] (2000) Text data with spaces in them... (1997) Letters as SKU (1998) Forcing Paragraph Breaks on Results (1998) RE: Can't get appendfile to work (1997) Further on formula.db failure to calculate shipCost (1997)