Login script

Hi all,
Can any one of you let me know how to write a login script which executes as the user logs out of his account? this can help many of us in doing very important tasks like memory clean up, closing of files etc.
Thank you.
Bye,
Srikanth

Comments

  • you can either create a shell script to perform your commands and call the script form the user's .bash_profile or put the commands directly into the .bash_profile

    if you want all new users to have this added automatically also modify /etc/skel/.bash_profile

    : Hi all,
    : Can any one of you let me know how to write a login script which executes as the user logs out of his account? this can help many of us in doing very important tasks like memory clean up, closing of files etc.
    : Thank you.
    : Bye,
    : Srikanth
    :


    Ben Martin :-D
    programmer


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion