Tag Info

Hot answers tagged

4

Simply paste: paste -d'\n' file1.txt file2.txt If you want to use awk, you can: awk '{getline a < "file2.txt";printf "%s\n%s\n", $0, a}' file1.txt


2

The problem seems to be the following line: dpkg: warning: files list file for package 'python3.2-minimal' missing; assuming package has no files currently installed Can you please run the following: apt-get update apt-get remove python3.* apt-get install python3 This will remove all Python 3 Packages and then install Python 3 again. It seems your ...


1

bson is not binary json, it is binary extended json. So the appropriate way would be to use an extended json parser for this that understands and properly processes the extra information. On the other hand there is awareness that incompatibilities with json can produce problems and there is at least one proposal to just do away with the extra info and let ...


1

There are three elements to the process of determining whether a disk "runs linux" make a list of partitions to check mount each partition check each partition for some "magic" files unmount each partition For step 1, you can use 'parted' called via subprocess.check_output() and parse the return value. For step 2 and 4 use 'mount' resp. 'umount' via ...


1

The first thing you should do is use easy_install to downgrade pip: easy_install-2.7 pip==1.2.1 I also downgraded setuptools to version 3.6, but a later version might work: easy_install setuptools==3.6 After that you should be able to use pip-2.7 to update things for python-2.7 If you create a virtualenv after that and activate it, you will have the ...


1

You can install the package python-beautifulsoup in a Ubuntu system running the command below as root: apt-get install python-beautifulsoup This will install the package under /usr/share/pyshared and importing it should work.


1

I found a way to solve this issue by simply removing the idle-python2.7 package: sudo apt-get remove idle-python2.7 as stated here.


1

You can use the next post-stop script for sleep only before respawn job (without sleep when just 'stop' or 'restart'): post-stop script # Change value of STIME to your number of seconds: STIME=15 initctl status $UPSTART_JOB |grep 'start/post-stop' >/dev/null && ( echo -n `date`; echo ": Going to sleep of $STIME seconds before respawn..."; ...



Only top voted, non community-wiki answers of a minimum length are eligible