• Locating a core file in a C program

    I'm running a C program, it keeps saying "core dumped" but I don't see any files under the current path. I've already set and verified the ulimit, like so: ulimit -c unlimited ulimit -a I also tried finding the file name core but couldn't find that. Where is this core file?

    ITKE355,685 pointsBadges:
  • Bash: How to redirect output to a file and stdout

    I'm currently using Bash and I already know that calling foo displays any output from that command on the stdout. Also, I know that foo > output redirects any output to the file specified. But here's my question: Would there be a way to redirect the output to a file and have it displayed on...

    ITKE355,685 pointsBadges:
  • Finding a Bash script that replaces spaces with file names

    Would anybody be able to recommend a safe solution that replaces spaces with underscores in fire and directory names that start from a given root directory? Here's what I have so far: $ tree . |-- a dir | `-- file with spaces.txt `-- b dir |-- another file with spaces.txt `-- yet another file with...

    ITKE355,685 pointsBadges:
  • Discover Wi-Fi connections in Ubuntu

    How can I search for available wireless networks using Ubuntu? It just asks me about the name of the network.

    Sevi15 pointsBadges:
  • How to control a USB power supply with Linux

    Would it be possible to turn off/on power supplies from a USB manually with Linux? We have an external USB fan and we're trying to control it from the terminal (because it's position is far away). Thank you for the help.

    ITKE355,685 pointsBadges:
  • Patch management procedure for Unix servers

    Hi, Can you please let me know the procedure for the patch management on all Unix servers? Is there any third party utility for this?

    Darsh945 pointsBadges:
  • Anyone installed Zimbra Mail before?

    Hi, Has anyone installed Zimbra E-mail server? It's an open source Collaboration tool. In opinion, it competes with exchange. What do you think?

    S-factor270 pointsBadges:
  • Prompt for input in a Linux shell script

    I'm trying to pause an input in a Shell script and prompt the user for choices. Just the standard 'Yes, No or Cancel' type of question. Is there a way to do this at a typical bash prompt? I would appreciate any help.

    ITKE355,685 pointsBadges:
  • Finding the location of an executed program in C++

    Does someone know if there's a way in C/C++ to find the location (the full path) of a current executed program? I tried using "argv[0]" but it's not giving me the full path. Thank you!

    ITKE355,685 pointsBadges:
  • Running an untrusted C program in Linux

    I'm trying to figure out if there's a way to run an untrusted C program under a sandbox in Linux. I'm looking for something that would prevent the program from opening files, network connections, etc. The program would also need to be short lived since it has unit tests on it. Can anybody help me...

    ITKE355,685 pointsBadges:
  • 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...

    ITKE355,685 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...

    ITKE355,685 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...

    ITKE355,685 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...

    ITKE355,685 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!

    ITKE355,685 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...

    ITKE355,685 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.

    ITKE355,685 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...

    ITKE355,685 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.

    ITKE355,685 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)?

    ITKE355,685 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