Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
iwquerytasks CLT not accepting STDIN
mick
hi
i'm trying to run the iwquerytasks CLT and it is not accepting an XML query from STDIN (in my case keyboard, as i'm running it in a terminal session). it will only work if i save the query in a file and then pass this file into the command.
the manual states that it will accept queries from STDIN.
has anyone else noticed this behaviour?
mick :-)
Find more posts tagged with
Comments
Adam Stoller
What version of TeamSite? including SP and/or patches.
What platform / OS?
Please show us *exactly* what the command line you typed looks like.
--fish
(Interwoven Senior Technical Consultant)
Migrateduser
I believe when you enter your XML (or any data that can span lines in a command line command) you need to enter a special "end of input" character (I think it's a single dot on its own line, but I can't recall off the top of my head) in order for the command to know you have finished entering data.
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
mick
thanks Dave
after a bit more research i've found the solution: use a "here document" (similar concept to perl). the syntax is:
$ command << END
> command input
> can be multiple lines
> END
(where the "$" and ">" at the beginning of the lines are shell prompts)
and i guess you could use "." as the END
(BTW, this works for UNIX. i don't know about Windows?)
mick :-)