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 PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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:
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 PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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:
DrWatson Error! (1999)
PDF Tools (2006)
The [shownext] limitations (2002)
Search design (1997)
Re[2]: HELP: OS X Problem... (2000)
Dubble Sku's in a Database (1999)
Stopping bad HTML propagation ? (1997)
grouping nothing (2000)
My web page only... (2003)
WebCatalog 4 Install Problems - Not Answered ?? (2000)
Limiting user access to .tmpl files (1997)
syntax question, not in online refernce (1997)
Displaying search results in a new frameset (1997)
[defined]ish (1997)
RE: type 2 errors with ssl server (1997)
PCS Customer submissions ? (1997)
WebCat Hosting - Pricing Question (2002)
Can't load tmpl files (1997)
Authenticate (1997)
Emailer and encryption (1997)