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.

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.

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

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

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

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

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

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

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.

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

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.

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)?

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?

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

To follow this tag...

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