Hi Friends
I have an issue with shell_exec. I am trying evoke a command from browser. The command get executed properly without any issue however it deos not return all the output which is shown on when I try to execute the same command in the DOS shell.
The details are as follows :
When I execute that command the output seen in dos shell is
@(#) International Ispell Version 3.1.20 (but really Aspell 0.50.3)
& gest 24 1: geest, guest, gets, fest, get, EST, est, gist, gust, jest, Gert, Best, West, best, gent, lest, nest, pest, rest, test, vest, west, yest, zest
but when I evoke the same command using shell_exec, it returns
@(#) International Ispell Version 3.1.20 (but really Aspell 0.50.3)
the output gets truncated I am not sure why this happens.
Evironment Details
OS : Windows XP
PHP version : 5.1.4
IIS :5.1
Any help to resolve this issue in thanked in advance.Please do let me know if there is alternative approach to achieve the functionality.
Regards
Yogesh
2 2773
Thx dear
I will confirm this and get back you you
:)
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Steve |
last post by:
Hi,
I'm trying to 'ssh' into another machine, run a small script and fetch
it's output, using shell_exec(). The problem is, it takes AGES to run
ssh and I don't know what's happening. If I try 'ssh'ing manually on the
shell, it takes a microsecond to fetch the result, whereas shell_exec
takes very very long and I don't know how to debug the problem. That's
problem number one: How do I tell what's happening and why is it taking
so long?
|
by: mattrapoport |
last post by:
I have a php page that needs to call a batch script. My test script
has one line: echo test.
I am running Win2003 Server, IIS, and php 4.3.10.
When I first tried running my php script I got an error that said
"unable to execute ...". Then I granted the IIS user execute
privledges to cmd.exe (I know, I know ... security risk).
Once I did that, my script gives me a CGI ERROR - something about http
|
by: jonathan.beckett |
last post by:
Hi all,
We have PHP 4 installed on Windows 2003 with Apache 2, and the
shell_exec has mysteriously stopped working - it hangs the page rather
then returning anything.
To check it out, I tried shell_exec("dir") which works fine on the
development machine, but not on the live server.
I'm guessing the network guys have done something to the security of
|
by: Don |
last post by:
Hi,
I have a problem with the special characters on the function shell_exec
(under Linux Debian with php 4.3.10-16):
$msg = '"'."Léà t'es où?".'"';
$output = shell_exec('java myClass'.' '.$msg);
All the special characters in $msg like é or à are turned into the
|
by: Paul F. Johnson |
last post by:
Hi,
I'm trying to create a zip file from some pdfs and have code similar to this
$id=$_GET;
$fn = array("a", "b", "c", "d");
chdir('../downloads'); // the php file is in /php
$files = $fn."1.pdf ".$fn."2.pdf 7-17.pdf";
$command = "zip -9 " . $fn . ".zip " . $files;
header("content-type:application/zip");
| |
by: scparker |
last post by:
Hello,
We have a stored procedure that does a basic insert of values. I am
then able to retrieve the ID number created for this new record. We are
currently using ASP.NET 2.0 and use N-Tier Architecture.
The Stored Procedures are used through TableAdaptors, which in turn are
used by Class Files.
I wish to be able to return this new ID value using the Stored
|
by: graphman |
last post by:
I have a perl script that I'm calling using php's shell_exec that uses
an expect module to go to another system to pull tiff files. The php
perl combination works great when I launch from the commandline:
$php docpull.php
I get the files I want. Everything is perfect.
When I run docpull.php through the web server I get to the expect call
in the perl script where the password is passed and the script fails.
|
by: pradeep |
last post by:
Hello,
I want to copy file from remote machine to local machine using PHP.
On both machines Linux operating system present.
The code is
$result=shell_exec("scp admin@192.168.1.236:/mnt/disc/hda/part1/demo/
conn /opt/lampp/htdocs/upload/");
|
by: Lawrence Krubner |
last post by:
I've a PHP script that is run as a cron job. It contains this line:
$stringListingAllProcesses = shell_exec("lsof | grep vsftpd");
The lsof command returns almost nothing unless you are the root user.
Can anyone think of a way I can use su or sudo or something else to get
this script to run as root?
(And yes, I'm aware that it is dangerous to allow a PHP script to run as
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |