> I really don't know the answer. But a look at the files in the
> /etc/rc.d/* may give you some leads.
> And I feel, being choosy about the tty is too much to ask for or is not
> an issue at all.
> > Hello,
> > Could someone point me to some commands that I can use to run a
> process in a
> > different way than just executing it from a console.
> > What I am trying to do is start some programs during boot, but the
> > is not made as a deamon.
> > I have tried to use the "&" command but that doesn't really work.
> > Are there any other commands that will give me more control?
> > Preferrably, I would like to choose which tty the program should run
> on and
> > be able to switch to it later on.
> > Thanks
> Sent via Deja.com
If your program is not a deamon, then I presume that you want to see
some screen output
of this program, so you need to run it to a tty ?
If this is the case the simplest way around that I can think of is to
add a new user to the
system, and add the execution of the program to the .bash_profile (Or
If you need to limit the tty's that are allowed to run this app then add
tty_number=`tty` # note the use if key next to No. 1 key on UK keyboard
( Above TAB)
case $tty_number in
/dev/tty1 ) /<your path>/<your file> ;; # the ";;" exits the script
/dev/tty2 ) /<another path>/<another file> ;;
esac # case backwards
all you need to do now is login as the created user, and your app runs.
Be careful which group you create your user in if you need to share
files with other users
Microsoft is not the answer, Microsoft is the question.
No or Linux is the answer.
Linux! Because a PC is a terrible thing to waste.