[dundee] A Python got me by the Neck...
James Le Cuirot
chewi at aura-online.co.uk
Wed Aug 1 10:34:01 BST 2007
On Tue, 31 Jul 2007 22:08:07 +0100 (BST)
Lee Hughes <toxicnaan at yahoo.co.uk> wrote:
>
> God, I'm tearing my hair out with this.
>
> I'm trying to run a python script on boot using ubuntu, but it just
> does'nt want to start.
>
> usually I'll make a script in /etc/init.d , the make a symbolic link
> from the runlevel I need to that in /etc/rc2.d/
>
> but, the python script does'nt want to start. I think it may either
> be a enviroment problem , or python can't see the correct lib's when
> booting?
>
> However, there is a script which starts a python printer daemon, I've
> copied that, and tried to make my python program run...
>
> no luck...
>
> any idea's. I've not got console access, so I'm not sure if I'm
> getting any nasty errors messages on start.
>
>
> any ideas linux heads?
>
> Laters,
> Lee
Two things to check. Make sure the shebang is correct. That's the first
line. It should be #!/usr/bin/python or similar. Also check that the
file is executable. chmod 755! Those are the only obvious problems I can
think of although you have probably already made sure that it works when
you run it manually.
James
More information about the dundee
mailing list