473,396 Members | 1,871 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,396 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 2570
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. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
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...
0
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,...

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.