• Error message when writing C program in Linux

    I'm pretty interested in learning to write C programs that use threads. Here's a program that my friend showed me: #include #include #define NUM_THREADS 5 void *PrintHello(void *threadid) { long tid; tid = (long)threadid; printf("Hello World! It's me, thread #%ld!\n", tid); pthread_exit(NULL); }...

    ITKE353,415 pointsBadges:
  • Sending a file as an email attachment using the Linux command line

    I recently created a script that's going to run every single night on my Linux server that would use 'mysqldump' to back up each of our MySQL databases to SQL files and then packaged them as a compressed .TAR files. I know want to send the .TAR file through an email to a remote email server. Here's...

    ITKE353,415 pointsBadges:
  • Linux: Sharing a file descriptor to another process

    We have two Linux processes. Here's my question: If we perform int fd=open(somefile) in one of the processes, would we be able to pass the value of the file descriptor over IPC to the other process and then have it manipulate the same file?

    ITKE353,415 pointsBadges:
  • Why would Linux kill my process?

    One of my applications is running as a background process on Linux. It's starting at the command line in a Terminal window. Just a few days ago, one of our users was executing the application for a while and it just died. The text 'killed' was on the terminal and it's happened twice already. Why...

    ITKE353,415 pointsBadges:
  • Linux: What are scripts writing to stdout and stderr in a readable way?

    We currently have several scripts that should have stopped running but, for some reason, they're hanging around forever. Would there be a way I could figure out what they're writing to stdout and stderr in a readable way? I already tried this: tail -f /proc/(pid)/fd/1 But it's not working. Does...

    ITKE353,415 pointsBadges:
  • Configuring virtual memory from Java in Linux

    I've been trying to run a Java application through Linux but I'm running into a few issues. When I launch the application (using the maximum heap size), the tops application of 240 MB of virtual memory is allocated to the application. It's creating several issues with different software on the...

    ITKE353,415 pointsBadges:
  • Which regex library should we use in Linux?

    We're working on a commercial C++ project, which would run through a Linux system. We need to do some regex within a C++ code. Which library should we use to do regex from C/C++? Should we use Boost.Regex? Thanks so much.

    ITKE353,415 pointsBadges:
  • Standard exit codes in Linux

    For several of our Linux processes, we've noticed that it's completed correctly when the exit status reaches 0. We've also seen that our segmentation faults often result with an exit status of 11 so here's our question. Does anyone know of the standard exit codes for Linux processes? We would...

    ITKE353,415 pointsBadges:
  • Java error: Cannot find or load main class

    We've been having trouble compiling and running our Java code. It's intended to allow us to interface Java with with a shared object for Vensim. This code we have no problem with: javac -d . -cp ./apache-log4j-1.2.16/log4j-1.2.16.jar:./vensim.jar SpatialModel.java VensimHelper.java...

    ITKE353,415 pointsBadges:
  • How can we symlink a file in Linux?

    My friend and I have created this code (which I'll post below) that the first path is the folder we want to link into while the second path is the compiled source. Would anyone be able to tell us if this is correct? Thanks so much! 'ln -s '+basebuild+'/IpDome-kernel/kernel...

    ITKE353,415 pointsBadges:
  • PHP.INFO is showing wrong size in Ubuntu

    We're looking to change the limit of our PHP upload file sizes. Here's some info we have on these: Configuration File (php.ini) Path /etc/php5/apache2 Loaded Configuration File /etc/php5/apache2/php.ini And here's the content of our PHP.INI file: upload_max_filesize = 50M post_max_size = 50M...

    ITKE353,415 pointsBadges:
  • Perl script to monitor application start and stop events in logfile

    Hello, I am looking for a perl script for Unix that would monitor for a start and stop line in an applciaiton logfile that contains the date/time of stat and stop. It needs to be able to calculate the date/time from start of applciation for 30 minutes and if no stop is logged to logfile within 30...

    NewSAPUser10 pointsBadges:
  • Process ID zero on Windows

    I am learning how to analyze what a Windows system is doing based on looking at processes and network connections. One system I just ran across has Process ID zero with multiple connections to external IP addresses (most Yahoo registered) on port 80. This has me suspicious as I assume process ID...

    Cybernorris50 pointsBadges:
  • Migration to Ubuntu

    I am certified on MCSE on Windows NT 4 and Windows 2003 so my experience is only on Windows and One of our clients want to migrate from Windows to Open Source Platforms and they have chosen Ubuntu Linux so I need to get knowledge on this operating system or other related FOSS platforms. What should...

    Chunter110 pointsBadges:
  • Oracle installation and migration between versions in Linux

    Hi Experts, I need some useful doc links or step by step procedure to perform Oracle installation and migration in Linux environment. I surfed through the NET and could not find any good docs or PTF on this. As I'm new to explore this role, can any one provide me some useful related links?

    Inprise610 pointsBadges:
  • How to launch a program within a C program

    I'm using a C program and I'm trying to figure out how to run (or launch) another program from within it. I would need to be able to write data into STDIN of the program that's been launched. Also, I would need this to work using Linux too.

    ITKE353,415 pointsBadges:
  • How find images in Linux using the “find” command

    We currently have several images that are named with a generated uuid1 string. Is there a way to find all these images using the "find" command in Linux? I tried using this: find . -regex "[a-f0-9\-]\{36\}\.jpg". But that didn't work. Could something be wrong with the regex? If not, what should we...

    ITKE353,415 pointsBadges:
  • Linux: Redirecting output to a file

    I understand in Linux that to redirect the output from a screen to one of my files, I can use either the > or tee. But I can't figure out why the output is actually still the output to the screen (and now written to the file). Would there be a way to redirect the output just to the file?

    ITKE353,415 pointsBadges:
  • Linux: Setting chmod for a folder and its subfolders and files

    Does anybody know if there's a way to set "chmod 755" for /opt/lampp/htdocs and it's content including subfolders and files? And if I create a new folder, can the chmod be automatically set to 755? Sometimes, this works but only for this folder. chmod 75 /opt/lampp/htdocs

    ITKE353,415 pointsBadges:
  • What is KDB+/Q

    Please let me know what is KDB+/Q used for .

    katieb5 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following