hello.
i trying make a custom method what causes return a char with system output.
the pseudocode like this.
char *my_Out(char *in ){
in = system ("ping %s",in);
return in;
}
thanks for the help.
...
Is it possible to implement at most n users based on majority voting, or voting district by Maekawa?
"At most n users" here means n users can access the resource at the same time.
I think both of them are not possible, as there's always a case that can violate the rule.
...
Is there anyway that we can detect when the system/screen gets locked and notify some event to trigger in Ubuntu ?
...
I have a problem with the system function. I want to store the system functions output to a variable.
For example,
system("ls");
Here I want all the file names in the current directory to store in a variable. I know that I can do this by redirecting the output into a file and read from that and store that to a variable. But I want a ...
What is Android's file system?
...
Hi
I need to determine if certain system settings have been set on the iphone. i.e. Whether or not particular sounds are enabled/disabled so I can decide whether or not to play sound in my own app. Is it possible to read the system settings, and if so, how?
Thanks
Fitto
...
Hi Experts,
I would like to execute a R script simply as
R --file=x.R
It runs well on the command line. However when I try the system call in C++ by
QProcess::execute("R --file=x.R");
or
system("R --file=x.R");
the program R runs and quits but I can't see the output the program is supposed to generate. If a program uses no std...
Hi.
We have a flexible process control system by which automation engineers configure up large application comprising thousands of small logical units that are parameterized and integrated into the control flow.
There are many tasks that are repetitive on the granular level, and there are a multitude of proprietary productivity tools t...
Hello,
I was wondering the best way to upload file to a web server in cocoa. I cant seem to get my curl code to work even though it works when run from terminal.
curl code:
system(@"curl -T /file.txt http://webserevertouploadto.com")
Thanks for any help
...
I'm building a spider which will traverse various sites and data mining them.
Since I need to get each page separately this could take a VERY long time (maybe 100 pages).
I've already set the set_time_limit to be 2 minutes per page but it seems like apache will kill the script after 5 minutes no matter.
This isn't usually a problem sin...
I have a program which does a system call:
latex somefile.latex
This runs ok, when I type it directly in the command line, or when i invoke the program via CGI. But when it is using FastCGI, the system call returns:
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
---! Must increase the hyph_size
(Fatal format file error; I'...
Hi
I am new to wordpress. I'm creating template in wordpress with php.I would like to know how to integrate my own login page (which contain two boxes i.e, user name & password) with wordpress login system.
Please anyone give a solution. Thanks in advance.
by
vinoth .J
...
Hello everybody,
I want to convert a pdf file to an image with PHP, but i can't get the command worked. PHP returns a 4. I don't have any kind of idea what that can be.
I am using the next code:
$tmp = system("convert -version", $value);
var_dump($value);
Someone an idea?
...
I'm currently debugging a Java application which uses the ESRI ArcObjects library. As the ArcObjects themselves are COM-classes and interfaces an integrated COM-bridge is used, which seems to be a stripped-down version of JIntegra.
It occurred to me, that the initialization of the ArcObjects library creates some system properties but I ...
Hi all.
I need to use something to coordinate my system with several consumers/producers each running on different machines with different operating systems. I have been researching on using MySql to do this, but it seems ridiculously difficult.
My requirements are simple: I want to be able to add or remove consumers/producers at any ti...
which one is better for implementing chat for the iPhone with users in the current area
gameKit or bounjour ?
...
Hi Everyone....
I am about to develop a online hotel reservation system...using php and mysql... I have some doubts about my current database schema and the business logic to get the hotels in which rooms are free between two particular dates...
Does anyone know of some kind of tutorial where i can get some idea about the hotel reserva...
Is there an easy way to query data in file system?
We are storing data in File system (instead of database)
Is there a way to query the content of the file system?
The data in the file system is stored in xml format.
since the data is growing day by day we are finding it difficult to query the content of the files in the file system.
Can...
What is the correct way of knowing operating system language (locale) from java code?
I have tried
Locale.getDefault()
System.getProperties("user.language")
etc.
but they are not correct nothing actually displays the "System Locale" which is available by the command "systeminfo" in windows.
Please help.
...
I'm a beginner in Perl and I have some trouble using the "system" call. Here is a little piece of code where I try to execute 2 shell commands :
# First command is :
# dot -Tpng $dottmpfile > $pngfile
# Second command is :
# rm $dottmpfile
if (!($pngfile eq "")) {
my @args = ("dot", "-Tpng", $dottmpfile, " > ", $pngfile);
system (j...