Question
How would I run
/bin/search from the command line, passing the arguments that are typically passed from the browser?
I have tried:
search search="[S]tatus.*(td..td|value\=).*Open" web="all" format="$formfield(...)... ...etc etc"...
... without success. It outputs the results of view on Main/WebHome
.
- TWiki version: Dec 2001
- Web server: Apache
- Server OS: Solaris
- Web browser:
- Client OS:
--
CoreyFruitman - 25 Apr 2002
Answer
I just did
search search="Wiki" web="all" >/tmp/tt and it worked fine on Cygwin, and would probably work with Solaris too. You may need to make sure you use single quotes if you include '$foo' within a string, of course.
--
RichardDonkin - 25 Apr 2002
Thanks.
Still, the
format argument doesn't seem to work. I have tried format='$web'. Since
format isn't in
search, I assume that it gets passed through to another module.
Do you know how to pass that parameter from the command line?
--
CoreyFruitman - 26 Apr 2002
I tried
search search="Wiki" web="all" format='$web' >/tmp/tt and it worked OK on Cygwin. Try putting some
writeDebug commands in the
search script to show the parameters actually received, see
TWikiDebugging.
--
RichardDonkin - 27 Apr 2002
Thanks for the info, Richard. I'm not sure why
search search="Wiki" web="all" format='$web' >/tmp/tt isn't working for me, but I'll try the debug messages as you suggested.
--
CoreyFruitman - 30 Apr 2002