adrianmak
asked on
autorun user scripts
In linux , I can add script in rc.local so that it can run automatically when system boot up.
How about in solaris ? I cannot find such file
How about in solaris ? I cannot find such file
do you mean to run the scripts each time the system boots, or just when a specific user logs on?
In Solaris for user logs on
is 2 file.
1.- /etc/profile (For all users)
2.- $HOME/.profile (sh and ksh schell) for
single user.
is 2 file.
1.- /etc/profile (For all users)
2.- $HOME/.profile (sh and ksh schell) for
single user.
> 1.- /etc/profile (For all users)
NO.
Not for users using other shell than ash, bash, bsh, esh, jsh, ksh, lsh, msh, pdksh, rksh, rsh(HP-UX only), sh, tsh, (and probably some more), as login shell.
NO.
Not for users using other shell than ash, bash, bsh, esh, jsh, ksh, lsh, msh, pdksh, rksh, rsh(HP-UX only), sh, tsh, (and probably some more), as login shell.
yes OK!
I write as example
for ksh and sh
I write as example
for ksh and sh
ASKER
I am not talking about user profile
but system auto run user scripts when system bootup
but system auto run user scripts when system bootup
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
how about reading /etc/init.d/README
It describes all you need to know ;-)
It describes all you need to know ;-)
>how about reading /etc/init.d/README
I never knew that file exsisted! (probably because I started on old AT&T System 5 ;)
I never knew that file exsisted! (probably because I started on old AT&T System 5 ;)
System up in /etc/rc2.d
for System down in /etc/rc0.d.
For System down only with
shutdown.
With reboot the system not start
the files in /etc/rc0.d