another flavor

another flavor

Post by Vic Cekvenic » Thu, 27 May 1999 04:00:00



OK,
I configured the router.

How do I create a shell scrip?
Isn't it just a text file with .sh extension?

How do I create a script that gets executed at boot time, before anyone
needs to log on?
I have a Sybase database server and would like to start it up with no
intervention.

I also want to do a xhost + in a .profile.
Isn't the .profile executed for a user at logon?

Again, thanks in advance for any help.
Victor

 
 
 

another flavor

Post by peter holme » Fri, 28 May 1999 04:00:00



> How do I create a shell scrip?
> Isn't it just a text file with .sh extension?

A shell script is a text file with the executable bit set.  To set the
executable bit, enter

  chmod +x file_name

where file_name is the name of your shell script.

Quote:> How do I create a script that gets executed at boot time, before anyone
> needs to log on?

See the README file in /etc/rc3.d for information re multiuser mode.

Quote:> I have a Sybase database server and would like to start it up with no
> intervention.

See the answer above.

Quote:> I also want to do a xhost + in a .profile.
> Isn't the .profile executed for a user at logon?

.profile is executed at login IF you are running sh(1) as your login
command.

 
 
 

another flavor

Post by Vic Cekvenic » Fri, 28 May 1999 04:00:00


Thanks


> > How do I create a shell scrip?
> > Isn't it just a text file with .sh extension?

> A shell script is a text file with the executable bit set.  To set the
> executable bit, enter

>   chmod +x file_name

> where file_name is the name of your shell script.

> > How do I create a script that gets executed at boot time, before anyone
> > needs to log on?

> See the README file in /etc/rc3.d for information re multiuser mode.

> > I have a Sybase database server and would like to start it up with no
> > intervention.

> See the answer above.

> > I also want to do a xhost + in a .profile.
> > Isn't the .profile executed for a user at logon?

> .profile is executed at login IF you are running sh(1) as your login
> command.