I am trying to execute a small shell script from a PHP Webpage.
Below is the shell script : 1.sh
$ cat /home/oracle/rahul/1.sh
Below is the PHP Script : index1.php and I copied this file in /var/www/html directory
When I am trying to run the PHP Script from the command line using : php index1.php then it is executing fine and generating the Output file : /home/oracle/rahul/report.txt however when I am trying to run the url i.e : IPADDRESS/index1.php then it is having problem and I an not able to see anything on my browser.
Last edited by rahul2662; 10-19-2015 at 07:44 AM..
Hi,
I am trying to execute the below shell script: script name(ss1).
ss1 was given permission - 744 before executing.
name: ss1
#ss1
#usage:ss1
ls
who
pwd
:wq
I tried to execute $ss1 (Enter)
Its not executing.... It says that ss1 is not found:
echo $SHELL. The o/put i got is... (5 Replies)
I am trying to run a shell script using the ./<ScriptName> command, but the server returns an error bash: ./Script1.sh: Permission denied
What variable do I need to set to avoid this? (4 Replies)
I have a webpage that is in HTML and PHP. In PHP I have tried using exec, system, shell_exec and passthru functions to call an Expect Script file (temp.exp). This Expect file spawns a telnet session that uses "expect/send" commands to retrieve information from an environmental unit (not a normal... (0 Replies)
Hi guys
Im in the process of designing a website for my company which does the following
1) Daily execution a perl script. The perl script's output is diverted to a .html file.
2) The .html file generated from 1) sets up a centralised webpage showing options as radio buttons (the radio... (1 Reply)
Hey experts,
I am trying to read a webpage and want to search for a text patter (case insensitive). Please help me acquire this.
If the text is found i will receive a mail which can be hardcoded in the script.
I am not a big fan of using PERL script.
Please help.
Machine: AIX... (15 Replies)
Hi All,
I wanted to know why we use the '-f' option while executing script.
in my case...
abcd.sh -f any_evts 02 2014
abcd = Scriptname
-f = dont know
any_evts = Some file or string
02= month
2014 = year
So in above pleas ehelp to understand here -f and other arguement like... (1 Reply)
Hi,
When I run command from php as www-data:
cordova platform add android
.. I get error without any solution in google.
But when I run it from shell (also as www-data) - it works!
So.. how to do to run this command from php but in shell (tty) not from php?
Regards! (5 Replies)
I want to create a simple html page that should contain 2 fields in which the user can write the input. Then I want to have a button that should launch a shell script with the parameters inserted by user in the fields from the webpage.
This is the code behind my webpage:
<html>
<form... (2 Replies)
so i have a bit of a unique situation.
i have an encrypted index.php file that that can't be run the normal way that a web browser would run it. if it is run the normal way, the php script will show only gibberish on the web browser, instead of the actual php code.
when run from the command... (8 Replies)