flux_shell_task_channel_subscribe(3)

SYNOPSIS

#include <flux/shell.h>

int flux_shell_task_channel_subscribe (flux_shell_task_t *task,
                                       const char *channel,
                                       flux_shell_task_io_f cb,
                                       void *arg);

Link with -lflux-core.

DESCRIPTION

Call cb when shell task output channel name is ready for reading.

Callback can then call flux_shell_task_get_subprocess(7) and use flux_subprocess_read(7) or flux_subprocess_getline(7) on the result to get available data. Only one subscriber per stream is allowed.

RETURN VALUE

Returns 0 on success and -1 on error.

Not yet implemented.

ERRORS

EEXIST

flux_shell_task_channel_subscribe() is called on a stream with an existing subscriber

RESOURCES

Flux: http://flux-framework.org

Flux RFC: https://flux-framework.readthedocs.io/projects/flux-rfc