My friend gave me a script which should be run with username and password as parameters to it. Since running this all the time as I log in is cumbersome and since there are few users of my system, I thought of asking this question. Is there any way that I could make a script run when a user logs in with the username and password the user enters as parameters? I've been searching for an answer for this problem through the internet and couldn't find it. Since many people claim that my written language is not clear enough, here's what I want to do in an example:
Say I have a user called Alex with username alex and password abc123. When Alex logs in he types in his username and password in login screen. This information should be used to automatically run a script in the terminal as
My system is 64 bit xubuntu 12.04 desktop edition.Code:$/home/my_script username:alex passwd:abc123
Any suggestions will be appreciated. Thank you.