Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LabRecorderCLI.exe ignores searchstr parameter #120

Open
sherdim opened this issue Dec 16, 2024 · 0 comments
Open

LabRecorderCLI.exe ignores searchstr parameter #120

sherdim opened this issue Dec 16, 2024 · 0 comments

Comments

@sherdim
Copy link

sherdim commented Dec 16, 2024

In the help example for clirecorder

std::cout << " 'host=\"LabPC1\" or host=\"LabPC2\"'\n\t";

there is a statement, which in console looks:

  LabRecorderCLI.exe foo.xdf 'type="EEG"'  'host="LabPC1" or host="LabPC2"'

but resolve_bypred accepts hostname, ex.:

  pylsl.resolve_bypred("hostname='LabPC1'", timeout=5)

So, IMO example statement should be corrected!

My testing on host "himik":

  1. 'hostname="himik"' (as in example - single quotes outer, double around value) - FAIL, matches anything, print in stdout as double single: ''hostname=himik''
  2. 'hostname="himik"' - FAIL, matches anything, print in stdout ''hostname="himik"''
  3. "hostname='himik'" - WORK, stdout: ... matching 'hostname='himik''
  4. "hostname=himik" - FAIL, matched no stream!
  5. "hostname='himik'" - FAIL, matches anything, print in stdout '"hostname='himik'"'
  6. "host='himik'" - FAIL, stdout: "host='himik'" matched no stream! (host is not LSL property)

So, ONLY double quotes searchstr with a values in single quotes are able to work in Windows console.

complex query "hostname='himik' and type='EEG'" works.

Related issue: 99

The same behavior for LabRecorderCLI.exe 1.16.2 and 1.16.4 in Windows 10, in standard command console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant