Solved

autostarting a cmd in Solaris 2.8

Posted on 2004-04-06
14
284 Views
Last Modified: 2013-12-27
I have a keybd/ms client software (synergy) that communicates to the server over the LAN allowing me to share one keybd/ms across multiple devices over IP.  I'd like to run the client software on my Solaris 2.8 'client' automatically before I log in and for it to remain running after I've logged in.

Currently, I've added the command in the /etc/rc2.d and also the /etc/rc3.d dir.  File was named S99sym and chmod'd to 755.  

The current result is that the prg is not launched until 1-2 minutes AFTER I've logged in.

How can I get it to run PRIOR to login (while at the GUI login screen)?

Thanks!
0
Comment
Question by:drodey
  • 6
  • 2
  • 2
  • +3
14 Comments
 
LVL 4

Expert Comment

by:vvk
ID: 10769566
init process rc files sequentially. in most cases S99 will be executed after all other daemons started. When you select number you need to be aware what other services are required for your program to start.
0
 

Author Comment

by:drodey
ID: 10769637
Right.  The reason I selected S99 is because it is the highest number and any previous services will have already started.  I've waited at the login prompt for 5-10 minutes just in case but it wont start until AFTER i've logged in.
0
 
LVL 4

Expert Comment

by:vvk
ID: 10769765
I'm not sure if after number it's going in alphabetical order. But looks like in your case it's starting after login. So check what number dtlogin is and make yor rc script at least 1 less.
0
 
LVL 48

Expert Comment

by:Tintin
ID: 10771173
The software must be waiting for something, as it will be started before you login.  Does it have dependencies on anything else?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 10776490
> ..  keybd/ms ..
are you talking about software maniging keybord/mouse input?
If so, how could you login without that input? And where comes your input from after login (starting your program)?
0
 

Author Comment

by:drodey
ID: 10786849
Here's the link to the free software: http://synergy2.sourceforge.net/doc-user.html

I'm going to try entering the cmd in some Xsession and/or Xsetup files and retry...

(It works for me in RH Linux - starts before logon prompt.)
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:drodey
ID: 10787210
Ok. I figured it out.  I added the startup cmd to the following two files & it successfully runs before I logon and stays running after I've logged on.

./usr/dt/config/Xsetup
./usr/dt/bin/Xsession

Thanks for you help, guys.
0
 
LVL 1

Expert Comment

by:greg14unix
ID: 10811463
rc2.d and rc3.d scripts are ran when the server changes run levels.  You will want to place a .login file into the home directory of the account you wish to have the programs start automatically.  .login scripts are parsed each time a user logins in and the /bin/login program is executed to process that login.
0
 

Author Comment

by:drodey
ID: 10813615
My issue was getting the prgs to run *before* anyone logged in.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 10814346
so was Xsetup and/or Xsession not successful?
0
 

Author Comment

by:drodey
ID: 10814398
It WAS successful!  
I was just responding to greg14unix's comments.
0
 

Author Comment

by:drodey
ID: 10823428
Yes, I found a working solution myself.
Please close & refund.
Thanks.
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 10833075
User resolved; points (75) refunded and question closed.

Netminder
Site Admin
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Contact Forms for Website 6 78
Coldfusion- Create and save form elements in Database 7 61
Problem to picture file 3 68
Problem to page 4 74
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now