CronJob not running

Finally I found the solution. Following is the solution:- Never use relative path in python scripts to be executed via crontab. I did something like this instead:-import os import sys import time, datetime CLASS_PATH = ‘/srv/www/live/mainapp/classes’ SETTINGS_PATH = ‘/srv/www/live/foodtrade’ sys.path.insert(0, CLASS_PATH) sys.path.insert(1,SETTINGS_PATH) import other_py_files Never supress the crontab code instead use mailserver and check the … Read more

How to use dos2unix?

You should be able to get dos2unix from your package manager on Linux. If you are using a Debian-based distro, you should be able to do sudo apt-get install dos2unix. If you are using a RH-like distro, you should be able to do sudo yum install dos2unix. Once it is installed, you can just give the target file as … Read more

GDB no such file or directory

I’m following these lessons from OpenSecurityTraining. I’ve reached the lab part where I’ve to train myself on a CMU Bomb. They provide a x86_64 compiled CMU Bomb that you can find here to train on : CMU Bomb x86-64 originally from a 32-bit bomb from CMU Labs for Computer Systems: A Programmer’s Perspective (CS:APP) 1st … Read more

Android – Command not found

On MacOS/Linux, define the path to wherever you installed your SDK as ANDROID_HOME: MacOS If you installed Android Studio, the value will need to be Linux Then add the paths to the platform-tools and tools sub-directories (Same on MacOS/Linux). You should now be able to run android from the shell. If none of the suggested … Read more

Does Mac OS X use Linux?

Mac OSX is built on top of BSD. http://en.wikipedia.org/wiki/OS_X Linux classes, in my opinion, are just fine and would enable you to be comfortable with the command line. The caveat is that there are differences such as the output or availability or options of commands. Instance is “ps”. The system libraries, the folder structure are … Read more

python-dev installation error: ImportError: No module named apt_pkg

I met this problem when doing sudo apt-get update. My env is debian8, with python2.7 + 3.4(default) + 3.5. The following code will only re-create a apt_pkg….so file for python 3.5 The following code solved my problem, Replace {your-version-number} appropriately. CAUTION, the following will create a symlink from apt_pkg37m to apt_pkg36m. make sure you are linking to the correct, or at … Read more