473,216 Members | 1,398 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,216 software developers and data experts.

How is call exec("/usr/usr/bin -C $U2 &");

Hi

This will not work, does any one know why?

exec("/usr/usr/bin -C $U2 &");

Thanks
Jul 17 '05 #1
3 2561
Carved in mystic runes upon the very living rock, the last words of Mike of
comp.lang.php make plain:
This will not work, does any one know why?

exec("/usr/usr/bin -C $U2 &");


Is /usr/usr/bin a program? What are you trying to do? What happens when you
try it? Have you tried it with the return paramenter to see what it's
returning?

http://www.catb.org/~esr/faqs/smart-...html#id2854122

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 17 '05 #2
Hi Alan

Thanks for the reply, it's a program, how does one one a return
paramenter, is it like $return = exec"/usr/usr/bin/add -C $U2 &");
Let me know thanks.

Mike

Alan Little <al**@n-o-s-p-a-m-phorm.com> wrote in message news:<Xn**************************@216.196.97.132> ...
Carved in mystic runes upon the very living rock, the last words of Mike of
comp.lang.php make plain:
This will not work, does any one know why?

exec("/usr/usr/bin -C $U2 &");


Is /usr/usr/bin a program? What are you trying to do? What happens when you
try it? Have you tried it with the return paramenter to see what it's
returning?

http://www.catb.org/~esr/faqs/smart-...html#id2854122

Jul 17 '05 #3
Carved in mystic runes upon the very living rock, the last words of Mike
of comp.lang.php make plain:
Alan Little <al**@n-o-s-p-a-m-phorm.com> wrote in message
news:<Xn**************************@216.196.97.132> ...
Carved in mystic runes upon the very living rock, the last words of
Mike of comp.lang.php make plain:
> This will not work, does any one know why?
>
> exec("/usr/usr/bin -C $U2 &");


Is /usr/usr/bin a program? What are you trying to do? What happens
when you try it? Have you tried it with the return paramenter to see
what it's returning?

http://www.catb.org/~esr/faqs/smart-...html#id2854122


Thanks for the reply, it's a program, how does one one a return
paramenter, is it like $return = exec"/usr/usr/bin/add -C $U2 &");

Let me know thanks.


Mike, the point of my response is that you need to provide more
information. Did you read the link I posted?

http://www.catb.org/~esr/faqs/smart-...html#id2854122

I also suggest you read the PHP documentation on the exec() function:

http://www.php.net/manual/en/function.exec.php

Answer all the questions in my post and maybe I'll answer yours. Oh, and
don't top-post.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Toby Donaldson | last post by:
Hi all, I'm designing an educational application that will run Python code and check the output against a pre-define answer. I want to use the "exec" statement to run the code, but I don't know...
2
by: tedsuzman | last post by:
----- def f(): ret = 2 exec "ret += 10" return ret print f() ----- The above prints '12', as expected. However,
1
by: Ted | last post by:
-------- def f(): ret = 2 exec "ret += 10" return ret print f() -------- The above example prints '12'. However, the following example prints
4
by: usr2003 | last post by:
I wrote the following test program to test the linkage directives extern "C": #include <stdio.h> extern "C" {
6
by: vigi98 | last post by:
Hello all, Can someone confirme that this: var strURLpiece = "UK & Ireland"; strURLpiece.replace("&", "%26"); replaces all occurrence of the character & by %26 in strURLpiece, ie that...
3
by: DC Gringo | last post by:
I have an image control (that pulls an image off an ESRI map server): <ASP:IMAGE ID="imgZonedCountry" RUNAT="server"></ASP:IMAGE> In the code behind I am setting the ImageURL to a String value...
21
by: comp.lang.tcl | last post by:
set php {<? print_r("Hello World"); ?>} puts $php; # PRINTS OUT <? print_r("Hello World"); ?> puts When I try this within TCL I get the following error:
2
by: xml0x1a | last post by:
How do I use exec? Python 2.4.3 ---- from math import * G = 1 def d(): L = 1 exec "def f(x): return L + log(G) " in globals(), locals() f(1)
1
by: manchin2 | last post by:
Hi, Can anybody please provide the information about "&quot" and its use, if possible please provide an example. ...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.