After a few hours struggle trying to upload the 11MB mediawiki from UTP, UTP-OSS Wiki is now up and running. Open Source users in UTP (and graduated students or others users), feel free to contribute to our wiki.
A little hack for python coders out there who wanted to have a functionality similar to the unix's tee command for redirecting output to multiple places.
import sys from subprocess import Popen,PIPE p = Popen(['put','command','and','arguments','here'],stdout=PIPE)
while True: o = p.stdout.readline() if o == '' and p.poll() != None: break # the 'o' variable stores a line from the command's stdout # do anything u wish with the 'o' variable here # this loop will break once theres a blank output # from stdout and the subprocess have ended
As promised before in one of my previous post, a Howto on how to mirror and manage yum repositories using some of the utilities in yum-utils.
The first step is, well, of course, is to get yum-utils from fedora repository yum install yum-utils
Reposync Reposync is a utility for mirroring and synchronizing local copy of a yum/rpmmetadata repository.
This utility is very useful if you wanted to make a yum repository mirror. Before this, I used "wget -R -np -N" but this method is a little bit tedious and it doesnt work with repos that didn't use directory listing. Plus, it also download together additional site stuff that I don't need/want and it doesn't verify checksum of the downloaded packages.
Mirroring a repo using this utility is easy, just execute this command reposync -r <repoid> -a <arch> -n and the repo will be mirrored in a folder with the same name of the repoid in the directory you executed the command. Eg: you executed the command in /mnt/storage/mi…