• Giving write access of a folder to all users in Ubuntu

    We recently installed Apache on Ubuntu this past week and we've noticed that the /var/www folder is protected. We already know that we can 'sudo' everything but we're looking to just give it write access. How can we do this?

    ITKE352,460 pointsBadges:
  • How to convert DOS line endings in Linux

    I'm using Linux. When I'm trying to open files that were created in Windows, all the lines keep ending with ^M. Is there a way to delete them all at once. Thank you.

    ITKE352,460 pointsBadges:
  • Not getting any ouput when running Linux bash script

    My friend and I are working on a scripting project that involves Bash. Here's what our script looks like: #!/bin/bash VAR1="$1" VAR2="$2" MOREF='sudo run command against $VAR1 | grep name | cut -c7-' echo $MOREF But when we run the script from the command line and pass it through the arguments,...

    ITKE352,460 pointsBadges:
  • How to go back to a previous directory in Bash

    Would there be a way to actually go back to a previous directory that we were using in Bash, without using pushd/popd? We're hoping for something like "back" so it returns us back to the directory that we were previously in.

    ITKE352,460 pointsBadges:
  • Check which Apache modules are enabled or installed on Ubuntu

    My apologizes for the short question but is there a way to check which Apache modules are enabled / installed? Thank you.

    ITKE352,460 pointsBadges:
  • Is there a way to execute a command whenever a file changes in Linux?

    I'm looking for a way to execute a command whenever a file changes in Linux. I need something very quick and simple. Basically something like whenever I'm running a file on a terminal and close it whenever I'm finished with it. This is what I'm using now: while read; do ./myfile.py ; done But for...

    ITKE352,460 pointsBadges:
  • Linux: Chmod 755 all directories but no file

    In Linux, how can I chmod 755 all directories but with no file (recursively)? Also, I'm looking to do the opposite too: Chmod only files with no directory. Thanks so much.

    ITKE352,460 pointsBadges:
  • How to increase the number of TCP/IP connections in Linux

    I'm currently programming a server and I've noticed that my number of connections is being limited since my bandwidth isn't being saturated. The thing is that I've already set the number of connections to unlimited. Would there be a way to increase the maximum number of connections that my Ubuntu...

    ITKE352,460 pointsBadges:
  • 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); }...

    ITKE352,460 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...

    ITKE352,460 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?

    ITKE352,460 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...

    ITKE352,460 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...

    ITKE352,460 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...

    ITKE352,460 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.

    ITKE352,460 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...

    ITKE352,460 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...

    ITKE352,460 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...

    ITKE352,460 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...

    ITKE352,460 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:

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