Re: [PHP] Not able to execute Linux binary

From: Jason Wong (php-general_at_gremlins.biz)
Date: 12/08/03


To: php-general@lists.php.net
Date: Mon, 8 Dec 2003 13:28:11 +0800

On Monday 08 December 2003 12:56, Karam Chand wrote:
> I think there is some problem with the permission.
> Even if I execute a command like -
>
> echo ( "start" );
> exec ( "pwd" );
> echo ( "end" );
>
> the output is - startend
>
> shouldnt be pwd showing the present working directory
> to me.

Yes, but exec() itself does NOT output anything.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Every recipe ever written includes one ingredient that you do not have in your 
kitchen
		-- Murphy's Food Laws n5
*/


Relevant Pages

  • Re: File permissions
    ... if you have permission, and doing the task requiring the permission. ... > be set if anything goes wrong and then execute the command... ... C++ iostreams are terrible for stuff like permissions, ...
    (comp.unix.programmer)
  • Re: group membership needed for looking at network usage?
    ... still run it by supplying the full path in the command. ... E.g. several programs run only as root; ... the user has execute permission. ...
    (comp.os.linux.networking)
  • Problem accessing Local Activation Permission for Application
    ... and run an executable (for a file extraction program, ... I can run the same exact command line manually with no problems. ... The machine-default permission settings do not grant Local Activation ... Does the error mean that the ASPNET user account cannot execute the program? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Problem accessing Local Activation Permission for Application
    ... and run an executable (for a file extraction program, ... I can run the same exact command line manually with no problems. ... The machine-default permission settings do not grant Local Activation ... Does the error mean that the ASPNET user account cannot execute the program? ...
    (microsoft.public.windowsxp.security_admin)
  • [Full-Disclosure] Advanced usage of system() function.
    ... and call its arguments as a command for shell. ... as we can see we still didnt get what we want (typing exit ... Connection closed by foreign host. ... think what we want to execute. ...
    (Full-Disclosure)