Re: [WebDNA] OT, environment variables os x

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 108267
interpreted = N
texte = --20cf3036387da0a5a804b761df36 Content-Type: text/plain; charset=ISO-8859-1 Glad to hear your problem is solved. FYI, WebDNA likely works with a shell installed by the OS or root. It passes the information to the shell to run it. I do not think there is a shell entirely in WebDNA to run those commands. My guess is it passed to /usr/bin/sh to run. Bill On Wed, Jan 25, 2012 at 3:40 PM, Thierry Almy wrote: > this makes sense ... I don't want to give www a shell ;-) > > I fixed my problem with absolute paths ... thanks anyway > > Thierry > > > > > Am 25.01.2012 um 17:51 schrieb William DeVaul: > > 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 >> > > --------------------------------------------------------- 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 --20cf3036387da0a5a804b761df36 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Glad to hear your problem is solved. =A0

FYI, WebDNA lik= ely works with a shell installed by the OS or root. =A0It passes the inform= ation to the shell to run it. =A0I do not think there is a shell entirely i= n WebDNA to run those commands. =A0My guess is it passed to /usr/bin/sh to = run. =A0

Bill

On Wed, Jan 25, 2012 = at 3:40 PM, Thierry Almy <lists@almy.ch> wrote:
this makes sense ... I don't want t= o give www a shell ;-)

I fixed my problem with absolute = paths ... thanks anyway

Thierry




Am 25.01.2012 um 17:51 schrieb William DeVaul:

I 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=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

Bill


On 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 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: suppo= rt@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: suppo= rt@webdna.us
--20cf3036387da0a5a804b761df36-- 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)
--20cf3036387da0a5a804b761df36 Content-Type: text/plain; charset=ISO-8859-1 Glad to hear your problem is solved. FYI, WebDNA likely works with a shell installed by the OS or root. It passes the information to the shell to run it. I do not think there is a shell entirely in WebDNA to run those commands. My guess is it passed to /usr/bin/sh to run. Bill On Wed, Jan 25, 2012 at 3:40 PM, Thierry Almy wrote: > this makes sense ... I don't want to give www a shell ;-) > > I fixed my problem with absolute paths ... thanks anyway > > Thierry > > > > > Am 25.01.2012 um 17:51 schrieb William DeVaul: > > 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 >> > > --------------------------------------------------------- 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 --20cf3036387da0a5a804b761df36 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Glad to hear your problem is solved. =A0

FYI, WebDNA lik= ely works with a shell installed by the OS or root. =A0It passes the inform= ation to the shell to run it. =A0I do not think there is a shell entirely i= n WebDNA to run those commands. =A0My guess is it passed to /usr/bin/sh to = run. =A0

Bill

On Wed, Jan 25, 2012 = at 3:40 PM, Thierry Almy <lists@almy.ch> wrote:
this makes sense ... I don't want t= o give www a shell ;-)

I fixed my problem with absolute = paths ... thanks anyway

Thierry




Am 25.01.2012 um 17:51 schrieb William DeVaul:

I 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=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

Bill


On 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 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: suppo= rt@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: suppo= rt@webdna.us
--20cf3036387da0a5a804b761df36-- 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:

Opinion: [input] should be called [output] ... (1997) Running _every_ page through WebCat-error.html (1997) RE: type 2 errors with ssl server (1997) SMSI - MacWorld (2005) WebCommerce: Folder organization ? (1997) OT: Several requests (2003) View order not right (1997) Nav. 4 probs with cart - Serious problem (1997) no global [username] or [password] displayed ... (1997) PDF mailing labels (2000) Not much on today :( (2004) where to put code (1998) WC2.0 Memory Requirements (1997) SET (1998) search results (1998) Duplicate Cart ID (2001) WebCat b13 CGI -shownext- (1997) WebCat2 - many [carts] on one template page? (1997) I've been framed by webcatalog! Does anyone know the way out? (2000) Make sure I understand this??? (1997)