473,748 Members | 4,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

shell_exec not returning all the output from command

5 New Member
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
Feb 6 '08 #1
2 2786
pbmods
5,821 Recognized Expert Expert
Heya, Yogesh.

FCKEditor has a successful spellchecker that is based on aspell. Check out their source code (http://www.fckeditor.net/).

Alternatively, try using exec() (http://php.net/exec).
Jun 27 '08 #2
yogeshbhandare
5 New Member
Thx dear
I will confirm this and get back you you
:)
Jul 11 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
5959
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?
2
1926
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
6
5620
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
0
1337
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
3
3462
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");
4
4360
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
1
2747
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.
3
5324
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/");
3
5880
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
0
8984
marktang
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...
0
9363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9312
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9238
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8237
agi2029
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...
1
6793
isladogs
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...
0
4593
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...
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2206
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.