Tags:
create new tag
view all tags

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

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2002-04-30 - CoreyFruitman
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.