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

batch cmds with wait #2530

Closed
BodduSatya opened this issue Jul 1, 2018 · 0 comments
Closed

batch cmds with wait #2530

BodduSatya opened this issue Jul 1, 2018 · 0 comments

Comments

@BodduSatya
Copy link

Hello Everyone,
can anybody help me to full fill following requirement

/yowsup/yowsup/demos/cli/layer.py

def sendMessageAndDisconnect(self, credentials, jid, message):
    self.disconnectAction = self.__class__.DISCONNECT_ACTION_EXIT
    self.queueCmd("/login %s %s" % credentials)
    self.queueCmd("/message send %s \"%s\" wait" % (jid, message))
    self.queueCmd("/disconnect")
    self.startInput()```

in message send wait is not working.

Actually my requirement is , execute the batch cmds with wait until the previous command finish the execution / set the timeout for each command.

In the above code "/disconnect" command should wait until the "/message" command to finish the execution.

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