• Bash: How to avoid the split on spaces

    In Bash, I'm trying to iterate over a list of files. I know the list is the result of a "find" command, so I came up with this: getlist() { for f in $(find . -iname "foo*") do echo "File found: $f" # do something useful done } It works fine until a file has spaces in its name. $ ls foo_bar_baz.txt...

    ITKE352,420 pointsBadges:
  • Passing arguments into C program from a command line

    My friend and I are using Linux and we want to have our program accept arguments when it'executed from the command line. So, here's our example: ./myprogram 42 -b -s So our program would store the number 42 an an int and execute certain parts of code (depending on what arguments it gets). How can...

    ITKE352,420 pointsBadges:
  • How to prevent a background process from being stopped in Linux

    I'm currently working on a Linux machine through SSH and I'm trying to leave a process running throughout the night so I thought I would be able to do that by starting the process in the background and redirecting stdout to a file. But that didn't work. But as soon as I close SSH, my process is...

    ITKE352,420 pointsBadges:
  • How to determine if our Linux operating system is a 32-bit or 64-bit

    We're trying to figure out whether our Linux operating system is a 32-bit or a 64-bit. When we typed in "uname -a", it's been giving us the following output: Linux mars 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:50:33 EDT 2008 i686 i686 i386 GNU/Linux But it still doesn't mention anything regarding...

    ITKE352,420 pointsBadges:
  • How to do non-blocking console I/O on Linux in C

    I apologize for the short question but would anyone know how to do non-blocking console I/O on a Linux/OS X in C? Thanks!

    ITKE352,420 pointsBadges:
  • Linux: Deleting a newline if it is the last character in a file

    We currently have several files that we're trying to delete the last newline if it's the last character in the file. "OD-C" is showing us that our command does write the file with a trailing new line, like this: 0013600 n t > \n So we've tried several things but nothing is working. Does anyone...

    ITKE352,420 pointsBadges:
  • Notepad++ alternative in Linux

    Ever since I started using Notepad++ on Microsoft Windows, I've pretty much become addicted to it. But I've recently had to move to Ubuntu and now I'm missing it. Is there an alternative to it? Thank you.

    ITKE352,420 pointsBadges:
  • MySQLDB error when trying to install Python script on Linux server

    We've been trying to get our Python script to run on our Linux server that we're connected to through SSH. Our script uses MySQL DB. We have all the other components we need but when we're trying to install MySQL DB through setuptools like this: python setup.py install But we keep getting the...

    ITKE352,420 pointsBadges:
  • How to access a Microsoft Access database through Python

    Is there a way to access a Microsoft Access database through Python? Or even with SQL? I'm looking for a solution that works with Linux but even Microsoft Windows would work. I would appreciate any advice.

    ITKE352,420 pointsBadges:
  • Determine the script file name in a Bash script

    Would there be a way to determine name of a Bash script that's actually inside the script itself. Here's an example: If my script is in the file "runme.sh", then how would I make it display as "You are running runme.sh" message (without any hardcoding)?

    ITKE352,420 pointsBadges:
  • Linux: Changing the output color using the Echo command

    My friend and I are trying to print a text in the terminal using the Echo command but we're having issues printing the text in a different color (red particularly). How should we proceed here? Thanks!

    ITKE352,420 pointsBadges:
  • How to randomize lines in a file on Red Hat Linux

    Is there a way to randomize the lines in a file using a standard tools on Red Hat Linux? I've been looking for something like Perl that would accomplish this. Thank you.

    ITKE352,420 pointsBadges:
  • What’s a good C++ cross-compiler from Microsoft Windows to Linux?

    Does anyone know of a good C++ cross-compiler from Microsoft Windows to Linux? I've been in programming for some time now (I'm still using Windows) but I'm just getting into Linux. A colleague of mine told me to use an IDE. Would that work?

    ITKE352,420 pointsBadges:
  • What wiki software do you recommend?

    Just as the title suggests, what wiki software (DokuWiki, MediaWiki, etc...) do you suggest to run?  The purpose of this is nothing more than to make a remote note-taking sort of scenario, so it's not something for anyone but me to be used.  I know I could do my own thing and stuff, but I'd...

    Eric Hansen2,065 pointsBadges:
  • How to start a core dump in Linux

    We have a process in Linux that's currently getting a segmentation fault. Would there be a way to generate a core dump when it fails? Thanks for the help.

    ITKE352,420 pointsBadges:
  • Write bash script to change current directory to project directory in Linux

    My partner and I have been trying to write a small script that would change the current directory to my project directory. Here's what we have so far: #!/bin/bash cd /home/tree/projects/java We saved the file as proj, changed it to CHMOD, copied it /USR/BIN but when I try to call it by PROJ,...

    ITKE352,420 pointsBadges:
  • Increasing open files limit in Linux

    When I'm running my application in Linux, I keep getting this error that says "too many files open." So I noticed that the "ulimit -a" reports that the limit is 1024. Would there be a way to increase it past 1024? Thank you.

    ITKE352,420 pointsBadges:
  • How to take a screenshot through a Python script

    I'm trying to take a screenshot through a Python script and then obtrusively save it. I also need to do this through Linux. I would appreciate any help.

    ITKE352,420 pointsBadges:
  • Linux: Have printf flush immediately after call

    In Linux, why does printf not flush after a call unless a newline is in the format string? Is this just in POSIX behavior? How can I have it flush immediately every single time? Thank you.

    ITKE352,420 pointsBadges:
  • Should I go for Unix administration without doing MCSE?

    Dear sir, I have done my diploma in 2006. After that, I'm doing job as a desktop engineer. Now I'm working on a project with EDS (Electronic data System). I have basic knowledge of network and DNS, DHCP and Active Directory. I'm getting a salary of 10K per month. My friend told me you should do...

    G.nijhawan140 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