Saell !

When I try to run my program in the background with '&', it just stops.
If I run it directly there is no problem, but otherwise I need to restart it manually:

~ $ devel/queue/queue.py
Queue will refresh every  60  seconds
~ $ devel/queue/queue.py &
[2] 21046
~ $

[2]+  Stopped                 devel/queue/queue.py
~ $ fg
devel/queue/queue.py
Queue will refresh every  60  seconds



Below is the main part of my program:

def main():

  queue=ShowQueue()
  queue.win.show()
  if len(sys.argv)!=1:
    t=int(sys.argv[1])*1000
  else:
    t=60000
  print "Queue will refresh every ",t/1000," seconds"
  gtk.timeout_add(t,queue.Refresh)
  gtk.mainloop()
  return 1

if __name__ =="__main__":

  main()


Is is  a python specific problem or for pygtk only or even just my program design ?

What can I do to allow my programs to run in the background ?


Takk

Jean-Baptiste
PS I am using python 1.5 ,pygtk0.6 onmy RedHat 7.2 box

-- 
-----------------------------
[EMAIL PROTECTED]

Department of Statistics
deCODE genetics     Sturlugata,8
570 2993          101 Reykjav�k

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to