how do i auto start application upon startup?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how do i auto start application upon startup?
# 1  
Old 04-01-2004
how do i auto start application upon startup?

sorry, i'm a newbie to unix...

but how do i or rather where do i write scripts that auto start my application e.g. Informix?

in Windows it would be services but in UNIX where can i auto start my informix program? To run informix i just type "oninit". And do i have to login to any user before i can autorun any program?

also, i understand to set environment vars, i have to edit my .profile file?

i add the below lines to that file but it doesnt seem to work?

informixdir=/opt/informix
export informixdir
path=$informixdir/bin:$path
export path


and is there any global environment file where i can edit 1 and it applies on all users who logon?

btw, i'm using SCO Unixware 7.

Thanks!
# 2  
Old 04-01-2004
Don't have S** here. If it manages like Linux, you might probably look for in these files:

/etc/rc.local, /etc/rc.sysinit, or /etc/rc.d/init.d
# 3  
Old 04-01-2004
Take a look at Automating program startup - you would want to use the rc scripts section for an application.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Howto auto boot SPARC | How to auto supply "start /SYS" and "start /SP/console" commands

When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies

2. AIX

Auto startup and shutdown in AIX

Hi All, I would like to schedule auto IPL (shutdown and start-up) by using a shell script. Can you please give me some idea? want to test on my lab box first. shell script should bring AIX LPAR down and then need to start/activate the LPAR after 30 min any idea is highly... (3 Replies)
Discussion started by: System Admin 77
3 Replies

3. Shell Programming and Scripting

Run application at startup

We have a Windows Service written in C# ported over to linux using Mono Develop... The code is working 100% when we run a script file which runs the exe... but we want the application to run at startup.... The application gathers info of the computer eg. Hard Disk Space etc... And compress it into... (1 Reply)
Discussion started by: yodzaan
1 Replies

4. Shell Programming and Scripting

How to Auto Generate pg_hba.conf file at Startup

Hi there, I'll start by letting you you know my current shell programming and scripting is very week (and thats a euphemistic description). I'm really just wanting someone to make a suggestion to get me rolling in the right direction though absolutely any help is of course welcome. Set Up -... (0 Replies)
Discussion started by: lukusc
0 Replies

5. Linux

file location for GNOME auto startup apps

I know how to add an apps to auto-start in GUI, but I'd like to know how to do it mannualy. So where is the file saved to by GUI ? (1 Reply)
Discussion started by: honglus
1 Replies

6. HP-UX

Auto-Port Aggregation startup fails on boot

I have a machine running HP-UX 11.23 (PARISC) and APA startup fails on boot. This is found in /etc/rc.log: Configure Auto-Port Aggregation(LAN Monitor) interfaces Output from "/sbin/rc2.d/S343hplm start": ---------------------------- get_start_dlpi_version: failed, errno is 22 ERROR: ... (1 Reply)
Discussion started by: kknigga
1 Replies

7. UNIX for Dummies Questions & Answers

auto-startup a process

hi, i just realise that everytimes i boot up my sun solaris 8 sparc, i need to explicitly run the following comand to start up my snmp agent. cd /etc/rc2.d ./K07dmi start ./K07snmpdx start i just wonder that how to make it auto-startup once the machine is boot up. please enlighten me.... (1 Reply)
Discussion started by: champion
1 Replies

8. HP-UX

hpux startup process, AUTO file?

hi, one of the process of hpux startup is this ISL where it consults the AUTO file. is this AUTO file resident in disk? thanks (5 Replies)
Discussion started by: yls177
5 Replies

9. UNIX for Dummies Questions & Answers

auto startup of a program

how do i make a program run at system startup? is there a hirarchy i have to consider? is there any equivalent to an NT "Service" in unix? how do you set it up? thanx Ron (2 Replies)
Discussion started by: exoron
2 Replies
Login or Register to Ask a Question