unfortunately I forgot to note down the new password from the last recovery. This means I can’t login as root and the init script can’t restart it due to not having been updated (sys_maint). Is there a way for me to fix this, most of the guides I found require you to restart the mysql server, well…
Does Java JVM use pthread?
Does JVM on Mac OS X use pthread to create threads? What about on Linux distributions, is it now default way to create threads for JVM on all distributions? Answer Yes, HotSpot JVM (i.e. Oracle JDK and OpenJDK) uses pthreads on Linux and on Mac OS X.
Cannot start mongodb service
I tried to start mongodb service from root user and it fails on the error that it cannot open file j._8, I checked the permissions as well. This was working fine before. This is the journal folder. I cannot open the file j._8 with cat or less as root. Please help to fix this. Thanks in advance Answer solved t…
How to run LibSVM Classifier with 10 fold cross validation from Weka from Linux commandline?
I have installed Weka 3.7.12 on a linux machine with only commandline interface. I have downloaded the LibSVM.jar file as well and copied it in the same directory. How can I run the libsvm with 10 fold cross validation from the commandline in a similar way as in java weka.classifiers.trees.RandomForest -I 100…
Jenkins adding single quotes to bash shell script
My shell script looks like this: It’s checked into cvs in a shell folder, Jenkins is configured to execute it on a Linux machine via a job with ‘Execute Shell’ build step: But Jenkins is wrapping the whole sudo line in single quotes which results in my log files not been deleted (although th…
deletion of file after 7 days
I have to delete multiple files after 7 days regularly. And the deletion dates and location are different for each file.Yes, I can apply a cronjob for each folder separately but tat will involve many cronjobs (atleast 15). In order to avoid this, I want to create a script which will go to each folder and dele…
searching through text file in terminal
Hi this might be a basic question for many, but it has however managed to eat a couple of hours of my time. I have large data file as an output from running a script. The file contains around 15 columns and around 100,000 rows. I wish to search through the file and in columns 4,5,6,7 and 8 check for
Difference on bash and ash parentheses
I was trying to use a diff command for comparing directory listings which works fine in bash: However, on the ash (embedded device where no other shell is available) I get Is there any difference regarding reading input operator < or parentheses ( )? Answer Don’t confuse the angle bracket in <( … …
find and remove all closed files that are not modified in some-time
I’m building a script in linux that will remove files from the disc that aren’t in used currently by the OS. I want to use find command so I can execute rm for all the files that I find that are not open. I tried so far this command without success: I found this command in some website it supposed
Commit data in a mysql container
I created a mysql container using the officially supported mysql image. I ran the image mounting a folder that contains a sql dump, then I created a new database in the container and imported the .sql dump in it: Then I listed the running containers to get that container’s id: Then, I commited the conta…