Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-22-2011, 03:22 PM   #1
LQ Newbie
Registered: Jul 2010
Posts: 7

Rep: Reputation: 0
[Help] Running an interactive (python) script in tty1 before login

Hello everyone,

I would like to run an interactive python script in tty1 on startup. This script requires user input outputs relevant data.
I also need this script to be run as root as it accesses USB devices (and has to detach kernel drivers).

It is an infinite-loop script, so I also want to be able to ctrl+alt+F to tty2 to actually login if needed.

If that's relevant, I'm using Ubuntu 10.04.
(I heard it is as it does not use inittabs)

Thanks in advance.
Old 04-22-2011, 05:38 PM   #2
Registered: Mar 2010
Distribution: Arch
Posts: 211

Rep: Reputation: 67
Ubuntu uses upstart. Google upstart inittab. You can run any program in lieu of getty or agetty or whatever it spawns on open ttys. If you want to pop a new console on the fly you can run `openvt /sbin/getty 57600 - linux`


interactive, linux, script, startup, tty

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu How to run Python script on Login? warnetgm Linux - General 14 03-13-2012 06:11 PM
Running /sbin/rc from non-interactive script? marco1475 Linux - Software 1 06-23-2009 04:43 PM
BASH - How to open an interactive script from a non interactive script..... OldGaf Programming 4 06-29-2008 04:34 PM
Running script (probably python) Bob Jones Linux - Software 1 09-29-2007 01:20 AM
python script to automatically login to yahoo pankaj99 Programming 1 09-17-2006 10:15 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration