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

OS_RUN Does doesn't run commands with more than one word BASH #12

Closed
kofteistkofte opened this issue Sep 8, 2019 · 2 comments
Closed
Assignees
Labels

Comments

@kofteistkofte
Copy link

OS_RUN works perfectly when I need to use something like "/path/to/script.sh" or "firefox" etc, they work perfectly. But whenever I try to run something like "/path/to/script.sh argument" or "mpc toggle" etc, it doesn't.

  • OS: Linux
  • TwitchSpawn Version: 1.2.5
  • Forge Version: 28.0.100

example rule:

OS_RUN LOCAL
 BASH %mpc toggle%
 DISPLAYING %["Here comes an OS magic!"]%
 ON Donation
 WITH amount IN RANGE [0,999]
@iGoodie iGoodie self-assigned this Sep 8, 2019
@iGoodie iGoodie pinned this issue Sep 8, 2019
@kofteistkofte
Copy link
Author

logs

[09Sep2019 02:59:02.861] [EventThread/INFO] [net.programmer.igoodie.twitchspawn.TwitchSpawn/]: Received Streamlabs packet (donation, streamlabs) -> {"amount":98,"isTest":true,"name":"Kofteist_Kofte","currency":"USD","from":"John","to":{"name":"Kofteist_Kofte"},"_id":"3aff2a08c12cc6b029d9e030495c58a2","message":"This is a test donation for $98.00.","priority":10,"formatted_amount":"$98.00","from_user_id":1}
[09Sep2019 02:59:02.861] [EventThread/INFO] [net.programmer.igoodie.twitchspawn.TwitchSpawn/]: Handling (for kofteistkofte) arguments {eventType=donation, eventAccount=streamlabs, eventName=Donation, streamerNickname=kofteistkofte, actorNickname=Kofteist_Kofte, message=This is a test donation for $98.00., donationAmount=98.0, donationCurrency=USD}
[09Sep2019 02:59:02.861] [EventThread/INFO] [net.programmer.igoodie.twitchspawn.TwitchSpawn/]: No associated ruleset for kofteistkofte found. Handling with default rules
[09Sep2019 02:59:02.861] [EventThread/INFO] [net.programmer.igoodie.twitchspawn.TwitchSpawn/]: Queued handler for Donation event.
[09Sep2019 02:59:02.862] [Timer-64/INFO] [net.programmer.igoodie.twitchspawn.TwitchSpawn/]: Failed to run shell script -> mpc toggle
[09Sep2019 02:59:02.862] [Timer-64/INFO] [net.programmer.igoodie.twitchspawn.TwitchSpawn/]: OS_RUN failed to run. (Cannot run program "mpc toggle": error=2, No such file or directory)
[09Sep2019 02:59:02.862] [Timer-64/INFO] [net.programmer.igoodie.twitchspawn.TwitchSpawn/]: OsRunAction action performed for kofteistkofte

@iGoodie
Copy link
Owner

iGoodie commented Sep 12, 2019

Must be fixed with 7a01cf3. (At least for CMD and POWERSHELL shells)
Waiting for your BASH tests

@iGoodie iGoodie closed this as completed Sep 12, 2019
@iGoodie iGoodie unpinned this issue Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants