system

How can Perl's system() print the command that it's running?

In Perl, you can execute system commands using system() or `` (backticks). You can even capture the output of the command into a variable. However, this hides the program execution in the background so that the person executing your script can't see it. Normally this is useful but sometimes I want to see what is going on behind the sce...

Assembly CPU frequency measuring algorithm

What are the common algorithms being used to measure the processor frequency? ...

how to put an .net application in system tray when minimized?

can anyone please suggest a good code example of vb.net/c# code to put the application in system tray when minized. ...

What command(s) control the behavior of /etc/rc*.d on Redhat/CentOS?

/etc/init.d/* /etc/rc{1-5}.d/* ...

File System Management Tools

Looking for suggestions on file system management tools. We have several terabytes of images, pdfs, excel sheets, etc. We're looking at some sort of software that will help us to manage, archive, etc the images. We don't store all the files information in a database but some are and we were hoping to maybe find an app that could help ...

Best way to capture stdout from a system() command so it can be passed to another function

I'm trying to start an external application through system() - for example system("ls") - i would like to capture it's output as it happens so i can send it to another function for further processing. What's the best way to do that in C/C++ ? ...

Non intrusive 'live' help system

I'm searching a C# component or code snipped that does something like that: I want to inform new users about the most important program functions if he opens a new window for example. It should be a box showing text (formated if possible) that is of course not modal and has some mechanism to 'go out of the way' if the user enters the te...

PHP 4 and 5, Ctrl-C, system(), and child processes.

I have a PHP script that uses the system() call to execute other (potentially long-running) programs (for interest: NCBI BLAST, phrap, primer3 and other programs for doing DNA sequence analysis and assembly). I'm running under Windows XP, using the CLI version of PHP from a command prompt, or as a service. (In either case I communicate ...

What is the best way to validate a terminal command has run successfully in Rails?

I'm writing a quick Rails app and was wondering how I can validate the success an exec'd command. The two commands I'm running are and SVN update, and a cp from one directory to another. ...

Sun Java System Portal Server

Hi , How can we make a web-src for Access Manager customizations and a par-src for portal server customizations?Are there concrete steps to do this? Thanks & Regards, Vivek ...

Getting System Date in MSVC 6.0

I am trying to get system date in a C program on a MSVC++ 6.0 compiler. I am using a system call: system("date /T") (output is e.g. 13-Oct-08 which is date on my system in the format i have set) but this prints the date to the i/o console. How do i make take this date as returned by above system call and store it as a string value...

Which free database system is best to store, and compute/analyze large text comparisons out of which the database would make usable statistics?

Hey, I got to create script that would compare thousands of large texts (to each other). And I'm wondering if MySQL is the best solution for this. Is there any other free databse system I could use to do simple - but processor-time consuming computing? Please, throw me into your knowledge's pool! Edit: Nature of documents - 500-7000 c...

Sun Java System Portal Server 7.1

Hi , I guess I can extend the base providers to manipulate the base layout etc.Is there any place where I can get the java source code for default providers? Where are the classes for these default providers copied to ?What are list of things that I can manipulate by extending base containers? Is there a comprehensive documentation on me...

system() copy fails, while cmd copy works

In cmd.exe, I can execute the command "copy c:\hello.txt c:\hello2.txt" and it worked fine. But in my C program, I ran this piece of code and got the following error: #include <iostream> using namespace std; int main() { system("copy c:\hello.txt c:\hello2.txt"); system("pause"); return 0; } Output: The system cannot fi...

Using a Single system() Call to Execute Multiple Commands in C

In an information security lab I'm working on, I've been tasked with executing multiple commands with a single call to "system()" (written in C, running on Fedora). What is the syntax that will allow me to execute more than command through system()? (The idea being you could execute arbitrary commands through a program running on a rem...

What is the difference between file and record in OS's view?

In terms of general operating system concepts , What is the difference between a file and a record? How the OS will manage them? I know what a file is and what a record is but how it is distinguished in an OS? ...

How to get current CPU and RAM usage in Python?

What's your preferred way of getting current system status (current CPU, RAM, free disk space, etc.) in Python? Bonus points for *nix and Windows platforms. There seems to be a few possible ways of extracting that from my search: Using a library such as PSI (http://www.psychofx.com/psi/trac/wiki/ -- that currently seems not actively d...

Mac OS X - System Preference Pane won't open

I'm working on a System Preferences Pane. It opens fine on some computers, but on other Macs (all running 10.5.5), the preference pane refuses to load and simply hangs, spitting the following into the console: 11/9/08 8:38:50 PM [0x0-0x31031].com.apple.systempreferences[369] Sun Nov 9 20:38:50 Macintosh.local System Preferences[369] <Er...

system transaction .net remove exception from session

Hi I am new to asp.net. I am working on an application that is doing system transactions. At some point in code an exception is raised and the code bombs out. It bombs out when clicking on a particular row record in a grid list. However after the user sees the exception...they go back and try to click some other record..which should ...

Purchase Order System

Hi, I hope I don't get flagged for asking this here. Does anyone know of any Purchase Order system written in .net (opensource)? Thanks Edit ~ Web or desktop based is fine. If the source code is available (opensource) I could handle the integration. The backend can be SQL Server or mySQL, I'd prefer SQL Server. ...