[Tutor] Calling an external program/daemon that doesn't exit/return

2008-08-28 Thread Michael Bernhard Arp Sørensen
Hi there. I'm trying to find some info about starting a program from python. I just want to start it and move on. The program will not end until reboot. Any clues? Med venlig hilsen/Kind regards Michael B. Arp Sørensen Programmør / BOFH "Ride out and meet them." ___

Re: [Tutor] Calling an external program/daemon that doesn't exit/return

2008-08-28 Thread Michael Bernhard Arp Sørensen
Hi again. Aparantly it was as simple as: os.system("nohup /code/daemon.py &") I know it's more correct to write a real deamon startet from a runlevel, but that will have to wait until later. :-) Med venlig hilsen/Kind regards Michael B. Arp Sørensen Programmør / BOFH "Ride out and meet them."

Re: [Tutor] calling an external program

2005-02-14 Thread Danny Yoo
On Mon, 14 Feb 2005, Alan Gauld wrote: > > - I am trying to call up an external program with something like a > > "Shell" command - can not find a way of doing this (in windows) > > Look in the os module, there are several options depending on exactly > what you need to do. The simplest option i

Re: [Tutor] calling an external program

2005-02-14 Thread Alan Gauld
> - I am trying to call up an external program > with something like a "Shell" command - can not find a way of doing this > (in windows) Look in the os module, there are several options depending on exactly what you need to do. The simplest option is system(). To read the output look at the vario

Re: [Tutor] calling an external program

2005-02-13 Thread Bernard Lebel
The os module is the answer. Use chdir() to make the target executable's directory the current directory, and then os.system( 'command' ) to run the actual command. Cheers Bernard Lobster wrote: - I am trying to call up an external program with something like a "Shell" command - can not find a w

Re: [Tutor] calling an external program

2005-02-13 Thread Max Noel
On Feb 14, 2005, at 10:37, Lobster wrote: - I am trying to call up an external program with something like a "Shell" command - can not find a way of doing this (in windows) Any hints? What about os.system('your_command_here')? -- Max maxnoel_fr at yahoo dot fr -- ICQ #85274019 "Look at you ha

[Tutor] calling an external program

2005-02-13 Thread Lobster
- I am trying to call up an external program with something like a "Shell" command - can not find a way of doing this (in windows) Any hints? Ed Jason ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor