Operating System - HP-UX
1833687 Members
4160 Online
110062 Solutions
New Discussion

Executing Application Command Upon Login

 
SOLVED
Go to solution
Sukhdeep Singh
Occasional Contributor

Executing Application Command Upon Login

Hello,

I'm trying to setup an HP J6000s (11i) workstation to start an application upon any user login. The application is a small GUI banner. How do I set this up? Also, this application needs to run as "root". How would I do that?

Thank you!
3 REPLIES 3
Victor BERRIDGE
Honored Contributor
Solution

Re: Executing Application Command Upon Login

Hi,
Any user on the workstation and so using its display and keyboard? or anyone connecting via network?

Is the application a binary?
What does it do?
Should the user have a prompt to a shell in a terminal after its execution?


All the best
Victor
Sukhdeep Singh
Occasional Contributor

Re: Executing Application Command Upon Login

Victor,

Thanks for replying. Yes, any user on the workstation using its display and keyboard or through the network using "Exceed".

The application is a binary. It does not do anything, it just displays a banner. There are no prompts to a shell or terminal.

Thanks!
Deep
Victor BERRIDGE
Honored Contributor

Re: Executing Application Command Upon Login

But why should it be root as root then?

For the rest
You could call the executable from the .profile or even put it in /etc/profile but be sure the DISPLAY variable is set and now to run it as root although not advisable unless you know why it just chown root ; chmod 4555

All the best
Victor