Skip to content

Instantly share code, notes, and snippets.

@joshmoore
Created August 16, 2018 09:03
Show Gist options
  • Save joshmoore/4ad1ebc0d5a7976bdb4de2a9705f3340 to your computer and use it in GitHub Desktop.
Save joshmoore/4ad1ebc0d5a7976bdb4de2a9705f3340 to your computer and use it in GitHub Desktop.
Simple search test
$ NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
$ echo $NEW_UUID
rGS3QV3NpsCjT1Jei643raLebi3Io2S7
$ bin/omero -q obj new Dataset name=$NEW_UUID
Dataset:1
$ bin/omero search Dataset $NEW_UUID
Using session for root@localhost:4064. Idle timeout: 10 min. Current group: system
# | Class | Id | name | details
---+----------+----+----------------------------------+-----------------
0 | DatasetI | 1 | rGS3QV3NpsCjT1Jei643raLebi3Io2S7 | owner=0;group=0
(1 row)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment