I'm using the system command in C++ to call some external program, and whenever I use it, a console window opens and closes after the command finishes.
How can I avoid the opening of a console window? I would be happy if the solution could be platform-independent. I would also like for my program to wait until the command is finished....
Hi,
We have a script that needs to function between two dates, so to test the script we need to change the UNIX system date to simulate the date conditions.
PROBLEM:
The problem is we have other systems running on the same server so we can't just change the UNIX system date.
QUESTION:
Is there a way to set the system date on the fly w...
Hi, i was wondering what the best way is to implement a tag system, like the one used in SO. I was thinking of this but i can't come up with a good scalable solution.
The things i was thinking was is the basic 3 table solution. Having the tags table, the 'articles' tables, and a tag_to_articles table.
Is this still the best solution to...
Can a shared ready queue limit the scalability of a multiprocessor system?
...
Hello, I am a objective-c newbe and am wondering how to run a shell script in objective-c easiest way possible. I don't care about any of the output. I have tried system(), exec() and execl() and an NSTask. Those methods don't work for some reason... This is the shell script I am trying to run:
"mount_webdav http://idisk.mac.com/idi...
Hi,
Is there a possibility of running my "grails run-app" command from my groovy script? I tried "cmd /c dir".execute() and it was working but "cmd /c grails run-app" doesn't seem to work :( Can anybody help me? I dont know how to see the output too :(
...
what is the difference between monolithic and microkernel.
...
The system() function will launch a new process from C and a Perl script.
What exactly are the differences between processes called by system() in C and from Perl scripts, in terms of representation of error codes?
...
System(); is able to call a program in PATH. How is it possible to send stdin read from e.g. a text field on a GUI to a command line program such as ftp, sftp ... with their own prompts?
System() waits for a program to quit, but ftp does not without user interaction. It's also not possible to create a batch file since it's read only one ...
How to know the minimum system requirement for a .NET application?
say, what should be the system configuration to run the application?
How to provide the minimum system configuration, required to run the aplication?
RAM ?, Processor ? and all.
Application uses dotNetFramework3.5 and DirectX9 made in C#.
Is it all about trial and erro...
I've implemented an Elo rating system in a game. There is no limit for the number players. Players can join the game constantly so the number of players probably rises gradually.
How the Elo values are exactly calculated isn't important because of this fact: If team A beats team B then A's Elo win equals B's Elo loss.
Hence I've got a ...
My System.out.println() and System.err.println() calls aren't being printed to the console in the order I make them.
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
System.out.println("out");
System.err.println("err");
}
}
This produces:
out
out
out
out
out
err
err
err
err
err
Instead of alternating out...
Applications that would boot straight from boot media like a bios.
WOuld this lead to better performance, leaving the OS behind?
Or would there be no difference, basically replacing system calls with function calls?
edit: I am after lists of applications similar to memtest86 but for number crunching as examples
...
I'm making a cross-platform (Windows and OS X) with wxPython that will be compiled to exe later.
Is it possible for me to create ISO files for CDs or DVDs in Python to burn a data disc with?
Thanks,
Chris
...
What are the differences between a "coroutine" and a "thread"?
...
I often catch myself doing the following (in non-critical components):
some_small_struct *ptr=(some_small_struct *) malloc(sizeof(some_small_struct));
ptr->some_member= ...;
In words, I allocate dynamically memory for a small structure and I use it directly without checking the malloc'ed pointer. I understand there is always a chance...
We'd like to use git to maintain system configurations. Because sometimes configuration data exists outside of /etc, we've started doing something like this on our systems:
# cd /
# git init
# git add etc
# git add some/other/path
# git commit -m 'initial import'
And so forth. This works, up to a point. As long as your cw...
Hi everybody,
I'd like to develop a tracking system using an API of course (like the famous Orange API).
the idea is simple:
I send a SMS (from my Web interface) to the person i want to track
The person's mobile terminal (GPS like this) send me back automatically
the coordinates by SMS.
The sent information are displayed on the user's...
Hi all,
I'm writing a Perl script that runs 4 simultaneous, identical processes with different input parameters (see background here - the rest of my question will make much more sense after reading that).
I am making a system() call to a program that generates data (XFOIL, again see above link). My single-core version of this program...
apc_clear_cache [http://php.net/manual/en/function.apc-clear-cache.php] has an option to send in 'user' which will delete the apc user cache, or else if not present, the system cache.
Which is better? I don't understand the difference since there's no way to explicitly store a value in one cache over the other via apc_store/apc_fetch.
...