Skip to content

Commit 6ff15f3

Browse files
committed
Control music by calling system commands
1 parent bf09d97 commit 6ff15f3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

jira_server/systemCommands.groovy

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def standardOutput = new StringBuilder()
2+
def standardError = new StringBuilder()
3+
def command = "mpc toggle"
4+
def process = command.execute()
5+
6+
process.consumeProcessOutput(standardOutput, standardError)
7+
return standardOutput

0 commit comments

Comments
 (0)