I want to clean up all my maven projects at once. But I want to avoid to do it step-by-step going through all the folders manually and call mvn clean. So I thought to do this with the find command. I tried the following call: The result was the error message: find: missing argument for “-exec”. No…
Tag: linux
@reboot cronjob not executing
I have a Python script which simply writes some text and saves it to a file I want to execute this script at startup via CRON. So I edit the crontab listing by using My entire crontab looks like : This is the location of the file, and the file has permissions to execute. I can run the file no
How to call variables from ip.txt file to .sh file?
I have list of ip addresses in one txt file which I have named ip.txt I want to call those ip in my .sh file, I am not sure how to proceed here.. here I did soemthing Please tell me how to do that? Answer This should make it: or using for as you do because the syntax is: for
java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
I’m working on XUbuntu 13.04 and developing swing applications. As I just wanted to try that application I ran into java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit on startup. I’ve found several questions about server/client vms and noticed that I have a server VM and t…
Does using linux capabilities disable LD_PRELOAD
In my custom environment an interceptor library is preloaded which runs a special implementation of bind(), connect(), etc. calls. The problem I see is whenever an application is explicitly enabled capabilities using command setcap, executing the application fails to preload interceptor library and calls defa…
SVN post-commit update error (Can’t create temporary file from template / permission denied)
My post-commit hook is: /usr/bin/svn update /var/www/html/mysite/ –username myusername –password mypassword –no-auth-cache >> /var/www/html/mysite/foo.txt 2>&1 After performing a commit, my post-commit hook outputs to foo.txt the following: Updating ‘/var/www/html/mysite&#…
Is it possible to compile Objective-C code on a PC?
I would like to start learning Objective-C for future iOS development. I understand that there are many large hurdles in getting an iPhone app to work on a PC but I’m trying to avoid all of that and just get familiar with the Objective-C language itself without all of the added mobile features. Is there…
Unable to install git
I ran the following commands on linux mint 12 lisa: I am getting the following error on running 3. That is, installing git: My /etc/apt/sources.list file contains the following content: sudo apt-get upgrade shows the following: Answer You need to install aptitude first. then install git using the command
make environmental variable equal the contents of a file
I am working on linux and I want to set an environmental variable to the contents of a file: vi file: Now the file has a lot of ” and other special characters and it will a take a lot of time to escape them all. Is there an easier way? Answer If filename is x.txt, you can use command
How do I grep out multiple lines of the same pattern?
I have a log file that is filled with exceptions that is not useful to me. It is being generated every two second and when looking at log file that contains 24 hrs of logging it becomes overwhelming to get to the relevant info I need. My logs look something like this: I want to clean up the copy of