ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am working with solaris 9,SUN-Blade-100 and in my application,I have to communicate with the serial port.
e.g. for USB connection /dev/usb0 or /dev/hiddev0 process is created.
Thanks in Advance ...
You don't say anything about your application, so it's hard to offer advice. If the process is run when you log in via that serial port, you could do a ps, look for that process, and look for what device is running it (like pts2, tty0, etc.).
I think the standard device names for serial ports under Solaris are /dev/ttya, /dev/ttyb, etc. Process names are another matter, and as far as I know, do not depend on any device names.
--- rod.
In my application,I am conneting a UPS and I have to monitor it via getting and sending the information using serial port or contact-closure.
So It should read the data from the UPS.To do it,It should start the process to communicate with the UPS.
So I have to find out that process is bieng stated or not??
For that,first I need to know the process name...
So Please help me out to getting the process name ?
Well,.. eh, nt very clear what you want to hear from us. If you write a program, you get to decide what the name of de process will be. If you did not program it yourself, what was the command you type in to start the process? If you just installed it from the UPS vendor and is started automatically, have a look in the manual, the README that probably came with, etc. etc.
Further to Hko's comments, your UPS monitor should be no different from any other process, and that it talks to the serial port is mostly irrelevant. If you have lsof installed, you can run that, and find the PID(s) that have the serial port(s) open.
--- rod.
When I am connecting the UPS with the serial port.It is showing the message --
Please tell me why it is showing this message and how can I solve this issue
Did you read the instructions that came with your UPS?? There's probably a configuration file that you have to edit, to put in the correct serial port name.
You mention "my application". If this is something you've written, you should certainly know how to change serial port names...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.