php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3302 exec and system do not work
Submitted: 2000-01-24 14:51 UTC Modified: 2000-08-19 12:05 UTC
From: zdenekmacura at hotmail dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.10 OS: linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: zdenekmacura at hotmail dot com
New email:
PHP Version: OS:

 

 [2000-01-24 14:51 UTC] zdenekmacura at hotmail dot com
I have problem with executing external program Scheme, I use exec or system,
but it does not give any ouput. 
My code is like:
$a=exec('scheme < /home/zdenek/test.scm');
echo $a;
when I use easy comand like 'dir' or 'mc' , then it works correctly,
I also tried Use full path for scheme
Also 'nobody' can read /home/zdenek/test.scm
and 'nobody' can execute scheme.


Zdenek Macura

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-09 14:02 UTC] hholzgra at cvs dot php dot net
may it be that your test.scm (or scheme in general)
puts a single newline to stdout just before termination,
so producing an empty line of output?

remember that exec() just returns the last line of
output, for the complete output of the exec'd command
you have to use the optionanl $array parameter ...

 [2000-08-19 12:05 UTC] joey@php.net
No feedback since Jan.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 02:01:36 2025 UTC