Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gui terminal

Status
Not open for further replies.
Oct 1, 2002
39
CA
Hi everyone! We have our computer operators that execute batch processing at night. My boss wants to limit their access. They are using the console (GUI terminal) of the machine. Is it possible that the script be executed upon their login to the system using a GUI interface?

My boss wants that everytime they login, a terminal will be automatically opened and the main menu of the script will be displayed. He doesn't want a prompt to be displayed on the terminal.

Are there anyone who have a sample script that I can check so as to implement this?

Thank you so much!

Sincerely yours,
aaronkeith

 
If each of them have a unique login user name or even if they both use the same name, go to that user's /home/username directory. Look for a file there called ".profile" and at the end of the script insert the command for the menu script that you want displayed. Following that insert an "exit" command.

When that user logs on successfully their .profile gets run which will run your specified menu script and when they exit the script they will exit and be returned to a login prompt.

Hope that is what you were looking for.

Bob
 

You should also set their shell to Rsh. That will stop them from escape'ing the script.

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top