I'm trying to follow the second solution provided in this KB article but whenever I run the line
java -jar atlassian-xml-cleaner-0.1.jar entities.xml > entities-clean.xml
I get the following output:
-rbash: entities-clean.xml: restricted: cannot redirect output
I've given everyone rwx permission on all files and I've even tried running this as the superuser, but I still get this output every time. Does anyone have any idea why this might be happening?
This is down to your use of rbash for your shell - that restricts many of the functions that bash (and most other shells) do.
One of the things rbash prohibits is the use of redirection of output, the > in your command.
I think you'll need to run the command in a less restricted shell.
Thank you for clearing that up! I ended up switching to the root user and then running the command
java -jar atlassian-xml-cleaner-0.1.jar entities.xml > entities-clean.xml
It immediately worked. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.