Hiding JSON output
-
I have tried to hide the information but nothing worked. Once again any help will be highly appreciated!
Hello, Can you let us know the specific command you used, and it's output? Thank you.0 -
Hello, Here's a third-party URL you may find helpful if you want the output hidden from the command line, but still need it generated for the purpose of the custom script: How to run a shell script in the background and get no output Thank you. 0 -
Hello, Assistance with custom coding isn't typically something we offer. A support ticket is generally reserved for issues where the cPanel & WHM software isn't working as expected. From what I see, the issue is your custom script relies on the JSON output to print the database creation details. Thus, if you were to hide or disable that output, it won't provide the information for the "print" command to display what you want to see in the command line. Thus, it would require custom modifications to your script (e.g. perhaps the use of another bash script that runs the first one and outputs certain data only). StackOverflow is a useful resource for this type of coding question. Thank you. 0 -
Hey, I have asked cPanel development related question is StackOverflow and the other users have guided me to this forum :D So, what I need to look for is if there is an option to pass the JSON information to the cPanel infrastructure in order for the database to be created, however in the same time it should be not displayed as output, is this correct? I understand that this is not in your scope of expertise and I am really grateful for the assistance so far! 0 -
Hello, Yes, or a simple workaround would be to utilize two bash scripts. The first one is the one you have now, and the second one would be the one you actually use to create the database. The second one would include code that filters the output to your preference. You could also try sending an email to integration@cpanel.net for feedback on how to best achieve that functionality. Thank you. 0
Please sign in to leave a comment.
Comments
7 comments