I have decided to take the LPIC-1, LPIC-2 and UCP, and being unemployed, I have to keep the budget down, therefore I have chosen to do this as a "self-study". I have found tons of material on the...
Type: Posts; User: Sandsound; Keyword(s):
I have decided to take the LPIC-1, LPIC-2 and UCP, and being unemployed, I have to keep the budget down, therefore I have chosen to do this as a "self-study". I have found tons of material on the...
I'll try to keep that in mind for my future projects.
The portability issues doesn't mind me that much (almost everyone I know uses Ubuntu anyway), but my programs have a tendency to get larger...
It this because of possible problems with portability?
I mostly do small PyGtk apps, so my code is already limited in choice of os.
Great :-) just what I need.
this is my final code (the interesting part):
serverip = ("192.168.1.10")
tid = time.time()
while True:
#if not found in 60sec then show error
Thank you both for your suggestions.
This is my first futile attempt that kind'a works:
tid = time.time()
while True:
if time.time() > tid + 0.20:
status = ("OFLINE")
I'm trying to make a fairly simple app in PyGtk.
I using WOL (wake on lan) to turn on my server, and would like to get a confirmation when it's up and running and be able to use is via vnc.
My...
I use this method :
http://showmedo.com/videotutorials/video?name=linuxJensMakingDeb
I use Bluefish myself, but Netbeans looks very promising.
I have made a rather clumsy solution to my problem :redface:
if color_normal == 'black':
normal_combobox.set_active(0)
if color_normal == 'blue':
normal_combobox.set_active(1)
if...
Hi all
I'm working on a python-frontend to the grub2 theme-file, I call it grub2l (or just grubtool).
I have a combobox where you can select the font-color, and when the program is loaded, I do...
yay... they are finaly up again \\:D/
I did have "import os" but the xterm did the trick.
Thanks :-D
thanks, but I kind'a like the minimalistic way gksudo ask for authorization.
Does pkexec behave like gksudo ? (if i do a gksudo it remember the authorization and the next gksudo will not prompt for...
It's a Python program with a gui and I don't want the whole program to run as root only the things that require it.
Can someone please tell me why this doesn't work :
os.system('gksudo "cp -f /home/sandie/Desktop/folder/* /home/sandie/Desktop"')
I can do this :
os.system("cp -f...
The Elder Scrolls V for Linux
That would be SO cool :biggrin:
I'm also new to Python and have a similar problem with hanging scripts, so I made this little python-app i call : Reload
btw. GTK is (imho) the best place to begin, and theres a lot of...
Got it :-)
def kill_callback(self, kill_button):
entry_box = self.command_entry.get_text()
for line in os.popen("ps -ef"):
if entry_box in line:
fields = line.split()
pid =...
Thank you all for helping.
I still haven't been able to figure out why ps return the correct line in a terminal and a "0" in the script ?
Looks nice and simple, but it doesn't seam to be...
Thanks, this looks promising.
Can't understand why this doesn't work thou :
self.command_entry.set_text('programX')
process_name = ('[p]ython '+'"'+ self.command_entry.get_text() +'"')...
If I do :
ps -ef | grep python programX
I get :
grep: programX: No such file or directory
I still don't know how to get the pid of a process called
"python ./programX"
I would like to kill a python script that is run from within another python script, while keeping the original script running.
example:
programX has a virtual terminal where I launch programY....
I found this how-to : http://showmedo.com/videotutorials/video?name=linuxJensMakingDeb
Now my .deb actually works with GDebi, but it is only usable as root ?
The .deb installed it in...
Cool 8-)
Sorry... but I don't get it, please elaborate