Red HatThis forum is for the discussion of Red Hat Linux.
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 still polite .... who is not polite here ... the person who is giving orders to people trying to school people .. or a person who is still being thankful to people using a wrong language is not at all related to you and you have no right to jugde ....
Telling someone they're using the wrong word isn't a bad thing, and you're flipping out over it with the "school people" stuff. Grow up; no one is judging you, but to say you'll still say it wrong because someone pointed it out is plain childish.
Quote:
If you like it you answer you don't like it just leave it ......
And if you don't like it, YOU can 'just leave it' as well.
Quote:
and oine more time : you requested the distribution , i already provided it to you .... my solution did not work for me because noit all processes are re-started ..... And please point me to the reason this make any difference if it's for work for school for fun for self-education ....
The distro makes ONE question you answered, and even then it was "give example"...not even a solid "yes, I'm using RHEL 5.11". RHEL is not only not free (as in, YOU NEED TO PAY FOR IT), but old. There are tools available in current distros that you don't have. You ignore ALL the other questions, such as:
WHY you need it to be so the other user doesn't notice things (huge red flag there)
What you are currently doing now, by posting what you have done/tried (as mentioned in the "Question Guidelines" for the forum)
What isn't working with it
What diagnostics you've run, message(s)/error(s)/ANYTHING aside from "not working"
Why the -STOP or -TSTP flags won't work for your current question
These are ALL RELEVANT to showing this is not a homework question that you want answered with no work of your own, and for determining that you're not doing something shady (i.e. "why the other user can't know anything happened"). Again...we are happy to help, but we WILL NOT write your scripts/programs for you, or give you a handout. Show the work you've done, and answer questions, period. Simple.
Quote:
I am so sorry that i had to ask aperson like you for help ... sure i don't have the knowledge that you have in this field .. yes it's my fault i gave the opportunity to person like you to be haughty .....
And we are sorry persons such as you post questions, then get combative when asked for details. You say you've been 'polite':
First reply by you: "i am currently not quite writing any script". Again, against forum guidelines...YOU have to show your work, and have flat out said you haven't done any.
Second reply by you: "This is very simple case". Talking down to people who are TRYING to help you isn't good.
Third reply by you: "let someone else maybe can be more open to help other than being arrogant .." Calling someone names after you STILL haven't answered the questions they've asked by trying to help you isn't good.
Fourth reply by you is where you go off about Eleanor Roosevelt...NONE of that was polite or nice.
Fifth reply by you: "you only apply rules you like and bypass rules you don't like ...", etc. Again, we are STILL trying to get you to answer questions.
You started off saying "this is so simple", and keep going. You've been disrespectful since your first reply, by purposefully ignoring forum rules, and not answering direct questions by people trying to help you.
Just stop. Either participate in the conversation, answer the questions, or don't bother posting. We WILL NOT do this assignment for you.
[SOLVED]? For now anyway? But WHY change user? "re-start" from beginning or CONTinue?
Quote:
Originally Posted by gentlesome
Thank you so much for your help and very interesting information
Thanks
You're welcome. Maybe mark this Thread as '[SOLVED]' (for now anyway, while you study)[?]
To debug "the issue is when maintenance process try to start those [app.] processes, some of them are [re?]started and some stay stopped..",
you would look into the process state, via `ps axlww|grep <app.name>` (or /proc/<pid>/...)
I still wonder: why do you want to: change user [from app. to maint.]? And do you want to "re-start" app. from the beginning, or just CONTinue it, from where it was STOPped?
Note: app. is abbreviation for application; STOP/CONT refer to 'signals' (via `kill`).
Telling someone they're using the wrong word isn't a bad thing, and you're flipping out over it with the "school people" stuff. Grow up; no one is judging you, but to say you'll still say it wrong because someone pointed it out is plain childish.
And if you don't like it, YOU can 'just leave it' as well.
The distro makes ONE question you answered, and even then it was "give example"...not even a solid "yes, I'm using RHEL 5.11". RHEL is not only not free (as in, YOU NEED TO PAY FOR IT), but old. There are tools available in current distros that you don't have. You ignore ALL the other questions, such as:
WHY you need it to be so the other user doesn't notice things (huge red flag there)
What you are currently doing now, by posting what you have done/tried (as mentioned in the "Question Guidelines" for the forum)
What isn't working with it
What diagnostics you've run, message(s)/error(s)/ANYTHING aside from "not working"
Why the -STOP or -TSTP flags won't work for your current question
These are ALL RELEVANT to showing this is not a homework question that you want answered with no work of your own, and for determining that you're not doing something shady (i.e. "why the other user can't know anything happened"). Again...we are happy to help, but we WILL NOT write your scripts/programs for you, or give you a handout. Show the work you've done, and answer questions, period. Simple.
And we are sorry persons such as you post questions, then get combative when asked for details. You say you've been 'polite':
First reply by you: "i am currently not quite writing any script". Again, against forum guidelines...YOU have to show your work, and have flat out said you haven't done any. ===> there are many many ways to ask, we are not here to accept any orders ...
Second reply by you: "This is very simple case". Talking down to people who are TRYING to help you isn't good. ==> not taking anyone down, i said it's a simple case because you keep focusing on the orthograph mistakes rather than the information
Third reply by you: "let someone else maybe can be more open to help other than being arrogant .." Calling someone names after you STILL haven't answered the questions they've asked by trying to help you isn't good. ==> rather than judging good or not, you should have only left it ... very very simple... if you don't like it and you have the admin privildges delete the post and we are good === rather then judging people
Fourth reply by you is where you go off about Eleanor Roosevelt...NONE of that was polite or nice.==> that's an information for you so you understand what you are doing none of us here can accept orders
Fifth reply by you: "you only apply rules you like and bypass rules you don't like ...", etc. Again, we are STILL trying to get you to answer questions.
===> very simple again, instead of beying rude, there are many many ways to ask question
You started off saying "this is so simple", and keep going. You've been disrespectful since your first reply, by purposefully ignoring forum rules, and not answering direct questions by people trying to help you. ===> you say "purposefully" did you open my mind and read what is happenening !!!1 again assuming a lot of thing and trying to apply that to people .... Sir i am not responsible of what you thing or what you assume and pleas don't apply that to me
Just stop. Either participate in the conversation, answer the questions, or don't bother posting. We WILL NOT do this assignment for you.
I never asked you to do any assignment that's not my problem if you keep assuming thing that not even exist , and i am not here to get an orders from you "Just stop" ... ... as i mentioned before again :
this is not assignment and stop being rude, when you are telling childish or Grow up that's none of your business , i was respectful to all people here .... and yet you are still being rude and giving orders ... i am not sure what you think you are!!
if you have a complex of inferiority do not give me orders ...[*]WHY you need it to be so the other user doesn't notice things (huge red flag there) : those are 2 different users one is application user and the other one is maintance user, the application user can notice anything he want it's not a problem ... what i meant by not noticing anything is the application user does not bother with any locks in case needs to restart or stop the process.
[*]What you are currently doing now, by posting what you have done/tried (as mentioned in the "Question Guidelines" for the forum) : As i mentionned, waht i did is start and stop using the application user and maintenance user but all process are not coming up
[*]What isn't working with it ==> again what is not working : all process are not coming up.[*]What diagnostics you've run, message(s)/error(s)/ANYTHING aside from "not working" : there is not error becasuse when i try to start the processes they are not coming up[*]Why the -STOP or -TSTP flags won't work for your current question ==> i am only user not a root and thanks for pointing to me i did not try it before
@gentlesome, not to be rude or something but I get what TB0ne means. Are you able to show any of your attempt rather than just the design?
I really thought it's simple case, because really, i am stopping one process (that was started by an other process ) and restarting the same process back.... That's what i did and that's what i see can be done as a test case...
Please could you help me to see what else i can do and information i can provide ...
You're welcome. Maybe mark this Thread as '[SOLVED]' (for now anyway, while you study)[?]
To debug "the issue is when maintenance process try to start those [app.] processes, some of them are [re?]started and some stay stopped..",
you would look into the process state, via `ps axlww|grep <app.name>` (or /proc/<pid>/...)
I still wonder: why do you want to: change user [from app. to maint.]? And do you want to "re-start" app. from the beginning, or just CONTinue it, from where it was STOPped?
Note: app. is abbreviation for application; STOP/CONT refer to 'signals' (via `kill`).
as i mentionned before, maintance user need to do clean up for some files tat application user is putting locks on..... so in do order to do a clean up i have to stop the process, and restart them back
I never asked you to do any assignment that's not my problem if you keep assuming thing that not even exist , and i am not here to get an orders from you "Just stop" ... ... as i mentioned before again :
this is not assignment and stop being rude, when you are telling childish or Grow up that's none of your business , i was respectful to all people here .... and yet you are still being rude and giving orders ... i am not sure what you think you are!!
If you're unable to understand what was told to you, that's not my concern. Again, you are NOT respectful..and have not been, and examples were provided to you. Telling someone you're going to keep doing something wrong, because you were TOLD it was wrong *IS* childish. You don't seem to be getting this.
Quote:
if you have a complex of inferiority do not give me orders ...
Again, grow up.
Quote:
[*]WHY you need it to be so the other user doesn't notice things (huge red flag there) : those are 2 different users one is application user and the other one is maintance user, the application user can notice anything he want it's not a problem ... what i meant by not noticing anything is the application user does not bother with any locks in case needs to restart or stop the process.
And you still avoid the "why do you have to do this so user 2 doesn't notice" question. Again, re-stating your question doesn't tell us anything new...still.
Quote:
[*]What you are currently doing now, by posting what you have done/tried (as mentioned in the "Question Guidelines" for the forum) : As i mentionned, waht i did is start and stop using the application user and maintenance user but all process are not coming up
And you still don't post your code/script/whatever you're using to actually DO THIS, as you have been asked for multiple times.
Quote:
[*]What isn't working with it ==> again what is not working : all process are not coming up.
Right...again, re-stating a simple "not coming up" is pointless. Without code and more to go on, no one, anywhere, will be able to help you.
Quote:
[*]What diagnostics you've run, message(s)/error(s)/ANYTHING aside from "not working" : there is not error becasuse when i try to start the processes they are not coming up
Back to "what/how are you doing this currently, post your code, and how are you troubleshooting things". Still not answering.
Quote:
[*]Why the -STOP or -TSTP flags won't work for your current question ==> i am only user not a root and thanks for pointing to me i did not try it before
You were pointed to it early on, yet seem to ignore everything, and requests from not only myself but others to actually clarify things and show us your own work.
And is there some reason you can't just use "su" to assume the ID of the second user??? and use the -STOP or -TSTP flags then??? Or are you going to continue being nasty, and not showing your work? Again, if you're not going to, then post your junk somewhere else, where they may be willing to babysit you.
Yes. Provide some commands and output. In this entire 24 comment thread I see not one example of what you are ACTUALLY typing or what commands you are using. Are you doing it in a program? in C? In java? Are you running a bash script? Are you using 'bash -c'? Are you using subshells? Are you using 'su' or 'sudo'?
These things matter and without ACTUAL examples of what you are doing, we will not be able to answer you.
Get it?
You have provided NO commands and NO examples AT ALL.
As you might have noticed, "General" explanations are not helping. So provide concrete examples of your commands/scripts whatever... and maybe the community will be able to help you.
Yes. Provide some commands and output. In this entire 24 comment thread I see not one example of what you are ACTUALLY typing or what commands you are using. Are you doing it in a program? in C? In java? Are you running a bash script? Are you using 'bash -c'? Are you using subshells? Are you using 'su' or 'sudo'?
These things matter and without ACTUAL examples of what you are doing, we will not be able to answer you.
Get it? You have provided NO commands and NO examples AT ALL.
As you might have noticed, "General" explanations are not helping. So provide concrete examples of your commands/scripts whatever... and maybe the community will be able to help you. Help us help you.
Good luck with that. I've asked numerous times point-blank for the same information, and provided the OP with the flags for kill, jjanel has tried, as well as you and c0wb0y. The fact that the user hasn't said why user2 can't know/leave any traces that something has changed, is a huge red-flag, coupled with the OP's hesitance to answer the "What are you trying to accomplish?" question.
Even something like: "We have a motion-control system we have to pause for scheduled maintenance. I'd like to be able to do this without having the end-users console go totally down, but just to show "paused" or at least not respond during maintenance." would be great. So far, nothing. It's gone from "I just want to know" to "given example with gedit", but nothing concrete. And as I've told the OP before, unless they show some actual work of their own, as they claim to have done, I'm not going to do their job/homework for them....
Provide the [complete/exact] way for us to reproduce the problem, then we can resolve it.
(Similar to a bug report or even a car problem, the repair person needs to see the problem occur.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.