Re: Fork You.. Forking and threading..

2006-07-06 Thread rh0dium
Hi Nick! This is much better than the kludge job I did - Thanks for the help!! Nick Craig-Wood wrote: > rh0dium <[EMAIL PROTECTED]> wrote: > > I have a problem with putting a job in the background. Here is my > > (ugly) script which I am having problems getting to background. There > > are

Re: Fork You.. Forking and threading..

2006-07-05 Thread Nick Craig-Wood
rh0dium <[EMAIL PROTECTED]> wrote: > I have a problem with putting a job in the background. Here is my > (ugly) script which I am having problems getting to background. There > are threads about doing > > python script.py & > > and others > > nohup python script.py & > > and y

Re: Fork You.. Forking and threading..

2006-07-05 Thread Jon Ribbens
In article <[EMAIL PROTECTED]>, rh0dium wrote: > if os.fork() == 0: > os.setsid > sys.stdout = open("/dev/null", 'w') > sys.stdin = open("/dev/null", 'r') I don't know if it's the cause of your problem, but you're not doing the backgrounding right, it should be: if o

Re: Fork You.. Forking and threading..

2006-07-05 Thread Grant Edwards
On 2006-07-05, rh0dium <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a problem with putting a job in the background. Here is my > (ugly) script which I am having problems getting to background. There > are threads about doing > > python script.py & > > and others > > nohup python scrip

Fork You.. Forking and threading..

2006-07-05 Thread rh0dium
Hi all, I have a problem with putting a job in the background. Here is my (ugly) script which I am having problems getting to background. There are threads about doing python script.py & and others nohup python script.py & and yet others ( python script.py > /dev/null & ) & R