maybe you should post your code
just looking at this line echo "" > #global:kworking#/#global:domainname# it's missing the final "" but really we would need your code to really help
does "echo" even work on linix ?
yes echo is a linux command too!
might be better off creating a bash script to create the file for you. Then adding the bash script to managed files, then use
Writefile to upload the file to the client then execute said shell script.
For the life of me I cant see why echo "" > #...# would fail thats just creating a blank line in the file referenced by #global:kworking#/#global:domainname# do those globals exist?
In Kaseya you need to use double >'s
echo "" >> #...# will overwrite the text inthe output file
echo "" >>>> #...# will append the text tot he file