Re: Shell context.

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43808
interpreted = N
texte = How does one redirect STDERR to STDOUT?> 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>&1 > > should 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 > ------------------------------------------------------------- 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)
How does one redirect STDERR to STDOUT?> 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>&1 > > should 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 > ------------------------------------------------------------- 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/ marc malacarme

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) Location of Browser Info.txt file (1997) Making Thumbnail Graphics (1997) [tcp connect] (1998) [OT] Cold Fusion snippet please... (2002) is sku a REQUIRED field on NT (1997) WebDNA-Talk Digests (1997) Summing fields (1997) Coding Style (2000) More on the email templates (1997) PROBLEM (1997) Multiple prices (1997) Change Subtotal (2000) Grep Help (2003) Professional WebDNA Hosting Solutions (2005) Accepting credit cards (1997) [WebDNA] XML Help (2009) Umm...about those log files? (Off Topic) (1997) Modulo function? (2000) Line Feed Character Appended (1998)