autoexec.bat

autoexec.bat

Post by lfeli.. » Fri, 04 Feb 2000 04:00:00



Dear Group,
  Hello, i want to start a few programs when i log in into my unix
account using the korn shell.. Is there an equivalent of autoexec.bat
in dos so that i can type in the commands and have them run
automatically at start up.

Thank You,
Luis

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

autoexec.bat

Post by gary » Fri, 04 Feb 2000 04:00:00


Luis,

You can create a file named .profile (dot profile) in your home
directory.  The commands in this file will be run each time you log
on.

Also, with the korn shell, you can create an invocation file that will
be run each time a korn shell is started.  The korn shell looks for
the variable ENV in it's environment.  If found, the korn shell will
execute the commands in the file that the ENV variable points to.

Example:

$ cat .profile
ENV=${HOME}/.ksh_options
export ENV

$ cat .ksh_options
alias dir='ls -la'

Hope this is of some help.

Regards,
Gary


>Dear Group,
>  Hello, i want to start a few programs when i log in into my unix
>account using the korn shell.. Is there an equivalent of autoexec.bat
>in dos so that i can type in the commands and have them run
>automatically at start up.

>Thank You,
>Luis

>Sent via Deja.com http://www.deja.com/
>Before you buy.


 
 
 

autoexec.bat

Post by Cal Dunniga » Wed, 09 Feb 2000 04:00:00


: Dear Group,
:   Hello, i want to start a few programs when i log in into my unix
: account using the korn shell.. Is there an equivalent of autoexec.bat
: in dos so that i can type in the commands and have them run
: automatically at start up.

There are likely two:
    .profile
    $ENV        # Could point to anything or nothing.

Read the man pages for ksh.
    man ksh

--
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

      Consulting                   wrong with a world in which Ken
      Modeling                     Thompson lives in obscurity and
      Training                     Bill Gates is a famous billionaire.
//////////////////////////////////////////////////////////////////////