hawihoney Posted September 13, 2019 Share Posted September 13, 2019 (edited) I'm using this XMLRPC-Client to send "Start/Stop downloads" commands from Tautulli to another Unraid docker container: https://gist.github.com/bjoern-r/c3afda16d45edad5f4a5 The last two lines of this script look like this: curl -k $verbose --data "@$rpcxml" "$servUrl" 2>/dev/null | xmllint --format - \rm -f $rpcxml xmllint is not part of Unraid so I removed the pipe: curl -k $verbose --data "@$rpcxml" "$servUrl" 2>/dev/null \rm -f $rpcxml I was under the impression, that "\rm $rpcxml" would remove the temporary xml file in $rpcxml. That does not work. Every RPC request leaves the temp file in the directory. Any help is highly appreciated. Edited September 13, 2019 by hawihoney Quote Link to comment
John_M Posted September 13, 2019 Share Posted September 13, 2019 What is the purpose of the backslash character before rm? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.