osgi - when using gogo gosh scripts, how do I get print outs from all commands -
i'm trying automate provisioning , searching of service speed testing of changes osgi system. utilize maven pax:provision set environment various repositories.
i have commands load info xml files , commands search services. search commands homecoming string describing results.
i've provision.tsl file commands load osgi environment , search.tsl file runs search commands. in search.tsl have list of search command, each various tables i've loaded. e.g.
echo doing searching searchcell sometable somevalue searchcolumnname echo search someothertable searchcell someothertable someothervalue searchcolumnname echo search yetanothertable searchcell yetanothertable yetsomeothervalue searchcolumnname
however, when run search command e.g.
osgi> gosh search.tsl
i result lastly command in file. echo works normal though , looks like.
doing searching search someothertable search yetanothertable homecoming results searchcell yetanothertable
is expected behaviour gosh?
the gosh console automatically prints value of each interactive command.
this makes appear searchcell command printing result, when in fact returning string, gogo prints.
this doesn't work in scripts, either need recode searchcell command print stdout, or explicitly print each result in script:
echo doing searching echo (searchcell sometable somevalue searchcolumnname) echo search someothertable echo (searchcell someothertable someothervalue searchcolumnname)
osgi pax gogo-shell
No comments:
Post a Comment