In your home directory there will be 2 files .login and .logout(take
notice of the leading dot), the might not be there is not create them. 
The you can put any commands in these files that you want to run when
you login and logout.

Open .login with your favorite editor (vi, pico, joe, emac, xedit, etc)
and put any valid command in there, just to show you how it works put
the command

echo "Hello, nice to see you have logged in"

in your .login file and put 

echo "Goodbye"

in your .logout file.

your can put a "df -ak" in your login to show the amount of disk space
when you logon in, or the command "free" or "uptime" and it will display
the amount of free memory and how long the system has been up.  Any
valid commands works, you can even called perl scripts from them.

Sometimes it is best to put the direct path to the program like instead
of 'echo "hello"' you could put '/bin/echo "hello"' just to make sure it
can find the echo command, since you are just logging in, your path
*might* not be setup at this point

If you want to put scripting in this, it is recommened that you use the
script launge of the shell you have, if you default shell is bash, put
bash if and loop statements in, since tcsh syntax may mess it up.

Have Fun




[EMAIL PROTECTED] wrote:
> 
> Thanks everyone for helping me those past few times but I still have
> more questions a coming :)
> 
> The question is - How do I make / modify login scripts ...
> 
> Thanx
> >From
> 
> Robert Hickey

Reply via email to