وردپرس

Execute a shell script when an image is put on drop area using html code


I’m using WordPress version 6.5.2 to create a webpage on the Godaddy server side.
On my webpage, I want to add a custom HTML code that will do the following five steps below:

(1) Using HTML custom code block, create a drag and drop area –successful
a. Drag and drop area is visible and properly aligned and sized.

(2) Add the shell script in the custom html code –successful
a. The shell script is in the HTML code

(3) Drag a text file on my local computer and place it in the drop area —successful 


a.) When the mouse is released, the text is displayed with no processing

(4) When the mouse is released execute the shell_script.sh which requires additional coding —FAIL
a.) It prints the contents of the HTML page and doesn’t modify the text file
b.) The path is embedded in my shell script to point to the virtual environment for all needed commands


(5) Print the expected result of the program. —FAIL
a.) It prints the contents of the html page

Is it possible to execute a shell script using drop area html custom code in WordPress webpage? The shell script is crucial for the operation of the webpage, and I’m unable to proceed beyond step (4) without it. Your guidance in this matter would be greatly appreciated.

Ron

این خبر را در ایران وب سازان مرجع وب و فناوری دنبال کنید

مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد

منبع: انجمن وردپرس

دکمه بازگشت به بالا