Help to integrate Shell script with PHP

Tags
web

 
Thread Tools Search this Thread
# 1  
Old 09-04-2017
Help to integrate Shell script with PHP

I have a shell script which takes user name and server name from the user and check the authentication type on that server like LDAP or VAS or local. It also provides various other info also such as owner of the ID and etc.
I need this script to work on the browser where user can directly input the values and get the output. For this I need to integrate my shell script with php or cgi.
Please help me in integrating it as I have not much idea in php.
# 2  
Old 02-25-2018
I think you can use exec PHP function to run your script.
Don't forget to make it executable using chmod +x ./script.sh
# 3  
Old 02-25-2018
Code:
<?php
$ouptut=`pwd`;
echo $ouptut;
?>


|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
How to integrate all the systemctl commands into a shell script to verify any daemon/agent service? Mannu2525 Shell Programming and Scripting 1 05-05-2018 03:12 AM
How to Integrate DropBox in PHP Web Application? AimyThomas Programming 1 09-11-2012 05:34 PM
Shell Script from PHP not able to cp or mv or anything CharlesKirk Shell Programming and Scripting 2 08-16-2012 11:49 AM
help with shell script executed by php. dmallia Shell Programming and Scripting 1 01-25-2012 01:34 PM
New line in shell/PHP script vidhyaS Shell Programming and Scripting 4 07-04-2011 06:53 AM
how to convert a shell script to a php script for displaying next word after pattern match sb245 Shell Programming and Scripting 0 03-02-2011 02:42 AM
Calling php from shell script dbakyle Shell Programming and Scripting 4 05-29-2009 11:57 AM
Again integrate files - bash script patrykxes Shell Programming and Scripting 2 01-22-2009 08:14 AM
Bash script - integrate two files patrykxes Shell Programming and Scripting 5 01-19-2009 05:51 AM
Accessing php script from shell script airon23bball Shell Programming and Scripting 3 10-14-2008 07:19 PM
Shell Script to Auto Run PHP Script elDeuce UNIX for Dummies Questions & Answers 4 08-28-2008 12:16 PM
Integrate PHP + Unix commands karthikn7974 UNIX and Linux Applications 1 04-28-2008 08:53 AM
Cannot run Shell script in PHP michrods Shell Programming and Scripting 2 02-08-2008 11:01 AM