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."
___
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."
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
> - 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
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
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
- 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