Re: [Shell] question

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 29641
interpreted = N
texte = >Does anyone know how I would do this? I am trying to execute a >script through [Shell] but the script is in another directory, would >I do it like: > >[Shell] >cd ../ZipMath/ <--- changing directory >./zipmath.cgi LOC [Zip] <--- run the script and pass variables to it. >[/Shell]You cannot count on the current working directory being anything in particular (it's usually the same directory as WebCatalog itself, but don't depend on it), so make sure your shell commands are 'absolute' enough to survive movement. I'd use absolute paths instead of cd.Technical Support ********************************** Smith Micro, Internet Solutions Div | eCommerce (WebCatalog) 16855 West Bernardo Drive, #380 | ------------------------- San Diego, CA 92127 | Software & Site Development WebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 **********************************------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: [Shell] question (WebDNA Support 2000)
  2. [Shell] question (Britt T. 2000)
>Does anyone know how I would do this? I am trying to execute a >script through [shell] but the script is in another directory, would >I do it like: > >[shell] >cd ../ZipMath/ <--- changing directory >./zipmath.cgi LOC [Zip] <--- run the script and pass variables to it. >[/Shell]You cannot count on the current working directory being anything in particular (it's usually the same directory as WebCatalog itself, but don't depend on it), so make sure your shell commands are 'absolute' enough to survive movement. I'd use absolute paths instead of cd.Technical Support ********************************** Smith Micro, Internet Solutions Div | eCommerce (WebCatalog) 16855 West Bernardo Drive, #380 | ------------------------- San Diego, CA 92127 | Software & Site Development WebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 **********************************------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to WebDNA Support

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:

WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) converted seed value? (1998) RE: A zip code search (1998) Re:quit command on NT (1997) Dummy Form Variables Needed (2000) CART question (2004) AutoCommit Preference? (1998) webdelivery.html and webna (1997) triggers.db (1999) Showif for mulitple variations (1997) Enhanced Master Counter? (1997) Errata: WCS Newbie question (1997) WebCat2b12 forgets serial # (1997) lookups (2000) [TaxableTotal] - not working with AOL and IE (1997) Internet Explorer 6 Form problems (2005) Multiple Pulldowns (1997) Searchable list archive (1997) Assigning new CART number (1997) Nested tags count question (1997)