LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-10-2003, 03:20 PM   #1
iancr
LQ Newbie
 
Registered: Dec 2003
Posts: 2

Rep: Reputation: 0
Question How can I execute an application automatically when a user loggs in?


I'm pretty new to LINUX. I'm trying to set up some users that will be accessing my Red Hat 6.1 server from Windows PC's using a terminal emulator. I would like to execute a program as soon as they log in as this is the only program these users will be using on this server. Is there a .profile or something similar I can edit to add this command line to it? If so, where and how?

Thanks!
 
Old 12-10-2003, 04:12 PM   #2
goldennuggets
Member
 
Registered: Feb 2003
Location: USA
Distribution: Kubuntu, Manjaro
Posts: 239

Rep: Reputation: 24
are the users logging into a terminal or into gnome or someother window manager?
 
Old 12-10-2003, 04:28 PM   #3
iancr
LQ Newbie
 
Registered: Dec 2003
Posts: 2

Original Poster
Rep: Reputation: 0
They're logging into the server as though they're runnig a terminal. It's coming in at the command prompt. I've done something similar in SCO UNIX some years back, but I'm not sure that would apply here. In UNIX, there was a .profile for each user and you would edit that to change path info or to execute say a menu script... That's essentially what I'm looking to accomplish. I don't want the user to ever have to see teh command prompt.

Thanks for your help!
 
Old 12-10-2003, 04:32 PM   #4
goldennuggets
Member
 
Registered: Feb 2003
Location: USA
Distribution: Kubuntu, Manjaro
Posts: 239

Rep: Reputation: 24
http://www.aplawrence.com/Unixart/startup.html

This was taken from the Tech TV site.
"A startup program for every user

There's a startup program for eash user, too. In the bash shell, modify the user's ~/.bashrc file. (Note that tcsh uses the ~/.tcshrc file.) You'd most commonly use these files to add command line aliases, modify prompts, and the like, but any shell command can be placed there. "

That's probably what you want. Just put in the command to launch the app, and when they login, it should automatically go. The link at the top provides some additional ways that may be helpful to you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Execute an application automatically after startx gilan Debian 6 03-24-2005 10:34 PM
CRON Process Won't Execute Automatically Transition Linux - General 5 01-14-2005 03:51 PM
i need to write a program it has to execute automatically ykirankumar Linux - Software 5 08-31-2004 12:34 AM
execute php script automatically? brandnewbie Linux - Newbie 1 08-14-2004 05:42 AM
How do I have X-apps automatically execute on startup of the X-server? jtX Slackware 13 08-07-2003 06:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration