[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Logon/off scripts



If you don't want an interactive login, then you can put the command/script directly in /etc/password.
There are different ways to call bash which runs the script.

Otherwise, just add it to the user's .profile or .bash_profile and it will run on login.
If you are setting variables, you will need to "source" the script.
E.g., (note the leading dot-space):
  . ~/.script.sh

-- 
Bryan J. Smith (currently mobile)
b.j.smith@ieee.org

-----Original Message-----
From:  Ray Holtz 
Date:  04-12-23 12:06
To:  silug-discuss@silug.org
Subj:  Logon/off scripts

I'm wondering where I would put a simple bash script so that it runs 
when I log a user on, then off.  All the script needs to do is copy a 
single file from location A to B.  So if I just need to put the command 
into an already existing file I could do that too.  I'm using FC3.

Thanks,
Ray

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.