Skip to main content
9 events
when toggle format what by license comment
Feb 14, 2018 at 9:41 vote accept henriquehbr
Feb 13, 2018 at 13:55 comment added henriquehbr Just one more question: i´m trying to put the dialog inside a variable, like main_menu=$(dialog --stdout --msgbox 'Example' 0 0) but when i do this, the dialog is shown on the server when it should be displayed on the client, any solution?
Feb 13, 2018 at 13:48 comment added henriquehbr Thank you a lot! you don´t even have idea how you helped me :)
Feb 13, 2018 at 13:45 vote accept henriquehbr
Feb 14, 2018 at 9:35
Feb 13, 2018 at 13:23 comment added Torin As for alternatives, it really depends on what your program wants to be able to do and how much variation the code may have. Have a look at how AJAX is used for a better feel of what kind of information you should be sending over. Keep in mind that with internet, possibly anyone could be seeing the information and at the same time possibly anyone could change the information. In this environment, you should not be sending code over such a channel.
Feb 13, 2018 at 13:17 comment added Torin You would need to replace if [ $? -eq 0 ]; then with if [ \$? -eq 0 ]; then since it's being substituted in there heredoc before it's sent over netcat.
Feb 13, 2018 at 13:00 comment added henriquehbr I used nc -l $porta_cliente | sh as you said, but when the server receive the text, the following line if [ $? -eq 0 ]; then is automatically setting the $? to 0, so i can´t verify if the user pressed cancel on dialog, any workaround?
Feb 13, 2018 at 12:53 comment added henriquehbr Thank you, but do you know any safer alternative?
Feb 13, 2018 at 12:27 history answered Torin CC BY-SA 3.0