Skip to content

LabRecorderCLI.exe ignores searchstr parameter #120

@sherdim

Description

@sherdim

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions