Re: Shell context.

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43807
interpreted = N
texte = marc malacarme wrote: > I'm trying to use shell to send commands to the server and wish to see the > results. Including errors. Is there a way? > You can try redirecting STDERR to STDOUT, since that is probably all that WebCat's [shell] context returns: /some/command/that/errors -option 1 2>&1should show you the error. I can see that it might be useful for WebCat to capture STDERR also and provide that in a [lasterror] context. Remember that everything between [shell] and [/shell] is actually executed in the shell of your system, so the error context would have to be displayed external to the [shell] context...FWIW, you cannot use any [shell] command that requires answering a prompt.John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 ------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Shell context. (John Peacock 2002)
  2. Re: Shell context. (Clement Ross 2002)
  3. Re: Shell context. (John Peacock 2002)
  4. Re: Shell context. (marc malacarme 2002)
  5. Re: Shell context. (John Peacock 2002)
  6. Shell context. (marc malacarme 2002)
marc malacarme wrote: > I'm trying to use shell to send commands to the server and wish to see the > results. Including errors. Is there a way? > You can try redirecting STDERR to STDOUT, since that is probably all that WebCat's [shell] context returns: /some/command/that/errors -option 1 2>&1should show you the error. I can see that it might be useful for WebCat to capture STDERR also and provide that in a [lasterror] context. Remember that everything between [shell] and [/shell] is actually executed in the shell of your system, so the error context would have to be displayed external to the [shell] context...FWIW, you cannot use any [shell] command that requires answering a prompt.John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 ------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ John Peacock

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:

Frames (1997) Format all of a sudden doesn't work (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) Store Builder shipping methods (2003) WebCat name recognition (was MacFinder -- a new WebDNA website) (1998) Problems passing [SKU] with $Replace in 2.0 (1997) Re1000001: Setting up shop (1997) help (2000) credit card (1997) Summing fields (1997) Speeding up my [showif] performance (1999) Setting up the server (1997) [WebDNA] WebDNA Showcase? (2008) [searchString] (1997) [SHOWIF AND/OR] (1997) hhtps to http and back? (2000) WebCat2b12 forgets serial # (1997) Limiting user access to .tmpl files (1997) listfiles-looking for slick solution (1997) Cobalt RaQ Installation (2003)