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

Allowing multiple --cmd arguments #236

Open
SummerSeaSun opened this issue Sep 7, 2021 · 1 comment
Open

Allowing multiple --cmd arguments #236

SummerSeaSun opened this issue Sep 7, 2021 · 1 comment

Comments

@SummerSeaSun
Copy link

This command send successfully a message to a sip extension but then it won't exit, but it start the GUI and keep running:

twinkle --immediate --cmd 'message -s object -d dst sipexten text message'

I've tried appending:
--cmd 'exit'

But this take precedence and won't send the message.
Is there a way to send the message and close twinkle at once?
Thanks, BR

@fbriere
Copy link
Collaborator

fbriere commented Feb 13, 2022

Is there a way to send the message and close twinkle at once?

A round-about way to achieve this would be to launch a second instance of Twinkle with --cmd exit, causing the first one to terminate. (You would probably want to insert a small delay between the two, to minimize the possibility of the second instance completing its initialization before the first, thus becoming the actual "first" instance and screwing everything up.)

Still, being able to pass multiple --cmd arguments would be a nice addition.

@fbriere fbriere changed the title cli send command and exit Allowing multiple --cmd arguments Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants