Hi Josh,
you were right, there is an output send back.
Here again I describe the bigger picture:
I have written a small python GUI that allows the user (no CLI lovers) to select folders on the fileserver and have them inplace imported into the Omero server. Therefore the fileserver is mounted on a permanent mount point on the omero server and the user/clients connect to the fileserver to select the folders they want imported. It looks roughly like the attachment.
- Screen Shot 2018-06-19 at 14.12.32_s.png (28.18 KiB) Viewed 1659 times
The routine is then:
[*] User selects a folder on the fileserver
[*] User enters a Dataset name
[*] User selects OMERO user from dropdown
[*] User presses "Generate List": this produces the filelist.tsv with path translated to the Omero-server-mount point of the fileserver also a bulki.yaml file is gnerated (although they are at the moment always identical) [*] These files are temporary saved localy
[*] User presses "Import to Omero": This does the following:
[*] a sftp connection is opend from the client/user machine to the Omero server and the two files (bulki.yaml and filelist.tsv) are transfered to the folder OMERO/ManagedRepositories
[*] via SSH the first command is issued:
/home/omerouser/OMERO.server/bin/omero --sudo inplace -w'inplace_password' -u 'Alex R' login -s 130.83.98.66
[*] then the actual import is started with:
/home/omerouser/OMERO.server/bin/omero import --bulk /OMERO/ManagedRepository/bulki.yml
This seams to work fine so far (with all your help), with the only limitation, that I need to produce the "user list" (for the dropdown) manually, since the script is in python 3 and I can not use the python 2 omero modules.
The problem I want to solve now is the following: Several users could issue the import command at the same time. So I added a random ID to the filelist/yml files as well as then matching to the CLI command for import. But then, when the import is finished I want the files deleted from the OMERO/ManagedRepositories to avoid chunk. Therefore I am looking for a trigger, when the import is finished and the yml/tsv files are no longer needed.
I hope this explains the bigger picture and I hope I am not doing something completely stupid.
Best wishes
Alex