I am trying to create a file in Windows XP that is only the extension (".classpath" and ".project"). While my Linux box handles this appropriately, Windows gives me the error, "You must type a file name."
Any suggestions how to do this? I am attempting to setup an Eclipse project where I can bring in the classpath and project files fr...
I want to distribute a ruby script to many of my friends, because it's useful. But how do I know what else they might have to install? I mean at the top of the script, there is this:
require 'rubygems' #
require 'activerecord' #TODO: figure out what packages this depends on
require 'activesupport' #
require 'duration' #
Tha...
We've got a PHP application and want to count all the lines of code under a specific directory and its subdirectories. We don't need to ignore comments, as we're just trying to get a rough idea.
wc -l *.php
That command works great within a given directory, but ignores subdirectories. I was thinking this might work, but it is retur...
I have some files across several folders:
/home/d/folder1/a.txt
/home/d/folder1/b.txt
/home/d/folder1/c.mov
/home/d/folder2/a.txt
/home/d/folder2/d.mov
/home/d/folder2/folder3/f.txt
How can I measure the grand total amount of disk space taken up by all the .txt files in /home/d/?
I know du will give me the total space of a given fold...
What do these successive cut commands do?
cut -f2 -d'"' | cut -f1 -d':'
...
Okay, this is for a homework; although I'm not requesting any help on the programming side. It's already done :)
After providing the same program which reads a random generated input file and echoes the same string it readed to an output. The only difference is that on one side I'm providing the read and write methods from linux syscals...
I need to have a query string in my crontab but it isn't working. Can someone please tell me how I can do this?
Thanks
...
We have a large number of programmers on different platforms all using CVS.
We have developers using windows with TortoiseCVS (which uses cvsNT)
We have developers using ubuntu 8.04
We have developers who have two boxes Ubuntu and windows.
A wide range of different editors are used by different developers on different platforms.
And...
I'm writing a java application that renders PDF documents to images, and when I run it on windows it works fine. But when I render the PDF on Linux, the standard fonts look a bit garbled, like there would be a few pixels missing on the right side of some characters.
I only tested it on a fresh install of Ubuntu 9.04 with OpenJDK 6, but ...
HI there,
So I followed this tutorial: http://www.tc.umn.edu/~brams006/selfsign%5Fubuntu.html
step by step in installing a Thawte cert... however on attempting to restart apache I get the following:
Restarting web server apache2
[Mon Aug 31 14:20:23 2009] [warn] NameVirtualHost *:443 has no VirtualHosts
httpd (pid 10117?) not running...
In a Linux VM (Vmware workstation or similar), how can I simulate a failure on a previously working disc?
I have a situation happening in production where a disc fails (probably a controller, cable or firmware problem). Obviously this is not predictable or reproducible, I want to test my monitoring to ensure that it alerts correctly.
I...
I want to find out the time in unix time (ie seconds since the unix epoch) on 9:00 BST on 1st October 2009. How can I do this on the linux command line?
I know you can use date @$UNIXTIME '+%someformat', but the unix time is what I'm trying to figure out
...
I would like to find the files containing specific string under linux.
I tried something like but could not succeed:
find . -name *.txt | egrep mystring
...
I am looking at moving my product from an RTOS to embedded Linux. I don't have many real-time requirements, and the few RT requirements I have are on the order of 10s of milliseconds.
Can someone point me to a reference that will tell me how Real-Time the current version of Linux is?
Are there any other gotchas from moving to a commer...
I'm developing a C# utility class that runs an external command on a Linux server via SSH (I'm using SharpSSH; I like it so far and I recommend it) and gives back some meaningful information based on the command's output.
Somewhere in the aforementioned output is an integer that should never be outside some range, but I'd like to preven...
These are the steps I am doing to compile the linux source on my machine :
1. Copy the config file from /boot to /usr/src/kernels/2.6.29.4-167.fc11.i586/ directory
2. make oldconfig
3. make
Step 3 fails with the following error :
make[1]: *** No rule to make target `missing-syscalls'. Stop.
Compiling on a x86 box.
Any suggestion...
This zgrep command is outputting a particular field of a line containing the word yellow when given a giant input log file for all 24 hours of 26th Feb 1989.
zgrep 'yellow' /color_logs/1989/02/26/*/1989-02-26-00_* | cut -f3 -d'+'
1) I prefer using a perl script. Are there advantages of using a bash script?
Also when writing this sc...
I have an external Tomcat server configured to run J2EE applications on my development (Gentoo Linux install) machine. This works great if the server is started prior to opening Netbeans and deploying the code [within the IDE]. This fails when I try to restart the server or to debug the server application. The error I get is that it is u...
I am developing a QT application on redhat linux, I want to capture Carriage Return press event on QComboBox, I have written Signal for editTextChanged(), it is fired for every key press but not for Enter Key.. Why it is so? If there is any other way to capture carriage return..??
...
Note: This question was originally asked here but the bounty time expired even though an acceptable answer was not actually found. I am re-asking this question including all details provided in the original question.
A python script is running a set of class functions every 60 seconds using the sched module:
# sc is a sched.scheduler i...