system

C# form app system account

Is it possible to run a windows form application or a console application under system account... Like asp.net application can run under system account by changing machine config file . This is to give more privileges to the program ... ...

PHP exec() will not execute shell command when executed via browser

I have a certain PHP script that calls exec() to execute a command to convert a PDF to JPG. This command works fine in bash. To preempt your initial troubleshooting guesses, note the following: safe_mode = Off Permission on the directory containing the PDF and the script is set to 777, and this directory is also where the JPG is bein...

Visual software system monitor

anyone ever see the visual monitoring tools factories and plants have? they show components of the manufacturing system in something reminiscent of a flowchart or visio diagram, but instead of a static image, each component has some interactive element (e.g. showing system stats or messages) I want to build something like this for an al...

How to analyse system architecture?

Hi All! I hope this is not to off-topic for this site. Recently I have had the opportunity to review banking systems for a client. Given how much time I have had to ponder over architecture in my own projects and for a overall system architecture, it is remarkable how difficult I find this task. I started off writing a list of feature...

Why isn't the process I start with Perl's system() a child process?

Perl's system() starts a process, but breaks the parent/child relationship? test.pl: use POSIX; system("./test.sh &"); my $pid = `ps -C test.sh -o pid=`; print "pid: -$pid-\n"; waitpid($pid, 0); test.sh: while true do sleep 1 done When I run test.pl, it finds and prints a correct pid of test.sh. But waitpid() returns -1 an...

What methods/techniques/tools do you recommend for documenting systems and infrastructure (runbooks)?

Background I recently joined a small start-up after working at a large company. I'm not a professional system administrator, however, because of my programming and systems knowledge I am now the internal person managing our servers and infrastructure. In the past, I never needed to document our system information: passwords (for serve...

Can I use perl's switches with /bin/env in the shebang line?

I want to run perl -w using env. That works fine on the command line: $ /bin/env perl -we 'print "Hello, world!\n"' Hello, world! But it doesn't work on the shebang line in a script: #!/bin/env perl -w print "Hello, world!\n"; Here is the error: /bin/env: perl -w: No such file or directory Apparently env doesn't understand the -...

What's the difference between "C system calls" and "C library routines"?

There are multiple sections in the manpages. Two of them are: 2 Unix and C system calls 3 C Library routines for C programs For example there is getmntinfo(3) and getfsstat(2), both look like they do the same thing. When should one use which and what is the difference? ...

I want to hide system commands issued from system()

Writing a program in c++ and I want to issue a system command from the system() function but I don't want the user to see the command (because the command includes a pwd) in the executable window. I need to copy a file from the user's directory onto the server without allowing user access to the server or displaying the pwd. Figured ha...

Form layout is not visible in visual C# for Smart Device->Windows CE 5.0->Device Application project

I am developing an application for windows CE 6.0. When i start a windows CE 5.0 device application project, IDE shows me the form in the solution explorer but there is no form layout in the designer. Instead, it appears as a control similar to openFileDialog control. The same problems does not occur if i try it on a windows applicati...

C: Run a System Command and Get Output?

hi, i want to run a command in linux, and get the text returned of what it outputs...but i DO NOT want this text printed to screen. There has to be a more elegant way than making a temporary file right? Duplicate of http://stackoverflow.com/questions/43116/how-can-i-run-an-external-program-from-c-and-parse-its-output ...

What happens if there are too many files under a single directory in Linux?

If there are like 1,000,000 individual files (mostly 100k in size) in a single directory, flatly (no other directories and files in them), is there going to be any compromises in efficiency or disadvantages in any other possible ways? ...

Call recv() on the same blocking socket from two threads

What happens if I have one socket, s, there is no data currently available on it, it is a blocking socket, and I call recv on it from two threads at once? Will one of the threads get the data? Will both get it? Will the 2nd call to recv return with an error? ...

pthread_cond_timedwait returning immediately

I'm having a strange problem. I have the following code: dbg("condwait: timeout = %d, %d\n", abs_timeout->tv_sec, abs_timeout->tv_nsec); ret = pthread_cond_timedwait( &q->q_cond, &q->q_mtx, abs_timeout ); if (ret == ETIMEDOUT) { dbg("cond timed out\n"); return -ETIMEDOUT; } dbg calls gettimeofd...

TFS and TSWA public access

Hi Currently we are faced with 3 different systems for creating and maintaining tasks, bugs in regards to both the customer and internal work. In our organization we would like to let the customer use the TFS frontend, TSWA (Team System Web Access), web portal to report and interact with the developers/project manager when testing new ...

File System TreeView

Im working with file systems and I have a List<> of file objects that have the file path as a property. Basically I need to create a treeview in .NET but im struggling to think of the best way to go about doing this as I need to create a tree structure from a list like: C:/WINDOWS/Temp/ErrorLog.txt C:/Program Files/FileZilla/GPL.html C:...

Mac os help browser fails requiring internet connection

I am developing an application for Mac OS X (I am new to that kind of things) and I want to include online help. The help is generated using doxygen and the help index generated using Help Indexer. I changed the Info.plist to point to the documentation, but when I try to access it, I get the following error: Internet connection requi...

Getting output of system() calls in ruby

If I call a command using system() in ruby, how do I get it's output? e.g. system("ls") ...

.net Comment System

Hi, I have my web site with a blog (created in blogengine), but i need to integrate a comment system to the site away from the blog. for example i have different modules to manage news and events and i want visitors to leave their comments for the modules (for difreent news and events). Is there any system (.net 2.0) to do this or i ne...

need hint with a custom Linux/UNIX command line utlity "cal" in C

Ok I need to make this program to display "cal" 3 month(one month before and one month after) side by side, rather than just one single month it displays in any Linux/UNIX. I got it working to display 3 calendar by using "system(customCommand)" three times; but then it's not side by side. I got some hint to use the following system cal...