LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2016, 09:40 AM   #1
akchaksa
LQ Newbie
 
Registered: Dec 2016
Location: Pune, India
Posts: 1

Rep: Reputation: Disabled
Linux script


Hi All,

I have a situation here, I want to login From linux server ex. A to number of linux server remotely and want to execute df -h command on each server. Finally want to store all outcomes in one text file which will be on server A.

Please help me asap.
Thanks in advance.
 
Old 12-03-2016, 09:54 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,948

Rep: Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018
Quote:
Originally Posted by akchaksa View Post
Hi All,
I have a situation here, I want to login From linux server ex. A to number of linux server remotely and want to execute df -h command on each server. Finally want to store all outcomes in one text file which will be on server A.

Please help me asap.
Thanks in advance.
First, we volunteer our time here...asking for/expecing 'asap' help is plain rude. Secondly, you need to read the "Question Guidelines" link in my posting signature..we are happy to HELP you, but YOU have to show us what effort you have put into this. Post what you have written/done/tried on your own, and tell us where you're stuck, and provide details about your system.

But this is not the place to come to have someone hand you a script, because you don't want to write one.
 
1 members found this post helpful.
Old 12-03-2016, 10:31 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,427
Blog Entries: 3

Rep: Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789
In addition to TB0ne's tips, I'd point you in the direction of SSH, specifically OpenSSH. Using that, you can make single-purpose keys to run any program or script you like automatically on the remote servers. There are separate manual pages for the client, server, and their configuration files. Once you have plain keys working, you can look in the manual page for sshd in the section "AUTHORIZED_KEYS FILE FORMAT" for details about how to make the key launch your script or utility automatically.
 
1 members found this post helpful.
Old 12-03-2016, 03:35 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by TB0ne View Post
First, we volunteer our time here...asking for/expecing 'asap' help is plain rude. Secondly, you need to read the "Question Guidelines" link in my posting signature..we are happy to HELP you, but YOU have to show us what effort you have put into this. Post what you have written/done/tried on your own, and tell us where you're stuck, and provide details about your system.

But this is not the place to come to have someone hand you a script, because you don't want to write one.
all asap means is
as soon as possible, which in here always takes place anyways ... I see is no insult in using that acronym, he was even Ploite enough to say please .. so where is the rudeness?

could you please help me as soon as possible? is a statement of taking into consideration of the other person time, therefore it is a actually is being polite.

he even gave thanks in advance without even considering that he may not even get any help. Which shows that this person gave them in LQ the benefit of the doubt that they are actually helpful people. Which equates to a complement.

the english language is not that tricky.

Last edited by BW-userx; 12-03-2016 at 03:43 PM.
 
1 members found this post helpful.
Old 12-03-2016, 04:28 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,948

Rep: Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018
Quote:
Originally Posted by BW-userx View Post
all asap means is as soon as possible, which in here always takes place anyways ... I see is no insult in using that acronym, he was even Ploite enough to say please .. so where is the rudeness?

could you please help me as soon as possible? is a statement of taking into consideration of the other person time, therefore it is a actually is being polite.

he even gave thanks in advance without even considering that he may not even get any help. Which shows that this person gave them in LQ the benefit of the doubt that they are actually helpful people. Which equates to a complement. the english language is not that tricky.
Yes, and 90+% of people usually post "thanks in advance"...it's not tricky to figure out it's just said for the sake of being said. And telling someone "good luck with that" isn't an insult either, is it?? After all, you're wishing them LUCK, right????

No...that's sarcasm. And telling someone you need something ASAP does NOT mean "as soon as you can get to it", otherwise you'd have said THAT. English is NOT tricky, but the meanings are certainly clear too. If you're concerned with my reply to the OP, please...feel free to post your own.
 
Old 12-03-2016, 05:11 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by TB0ne View Post
Yes, and 90+% of people usually post "thanks in advance"...it's not tricky to figure out it's just said for the sake of being said. And telling someone "good luck with that" isn't an insult either, is it?? After all, you're wishing them LUCK, right????

No...that's sarcasm. And telling someone you need something ASAP does NOT mean "as soon as you can get to it", otherwise you'd have said THAT. English is NOT tricky, but the meanings are certainly clear too. If you're concerned with my reply to the OP, please...feel free to post your own.
"good luck with that, yes is a smart ass way of saying haha as if, and I am not going to help you, fat chance of that happening, hahahahaha at you ..
( and the term smart ass is even being used wrong in that statement, so yes fall back to sarcasm)
but,

asap because it is an acronym, only means, As Soon As Possible = ASAP.

if someone is busy doing something, regardless if they know that person is or not, and would like that person to do something for them right now! because that person requesting this needs it done right NOW! but do not want to impose on that other person in such a manner of being rude to that person by telling them that they have to do it RIGHT NOW, because I said so. They are now thrown into a moral conflict as a result of it.

that person needs something that he or she cannot do on their own done right away. so they have to look to another to do this for them. but they know that they do not have the right to demand anything like that from another, and not wanting to be rude by demanding that it gets done right now by another person. Mankind has devised a system called taking others into consideration.


it is media that makes it look like it is an offense request. where do we usually see this being used? in a hospital setting on TV where the word STAT is now used, which means “instantly” or “immediately.” Because ASAP as not quick enough. Simply because all it means is, as soon as you can. not RIGHT NOW!

so asking or telling someone using the acronym asap, is just them saying do this for me as soon as possible, because of mans laziness, they too have developed a love for acronyms. so they do not have to use so many words to say something to get the point across.

adding the word please is just adding that person politeness to it even more so.

the reality principle has to be set in motion, if it is then we will see people using asap instead of the selfish act of do it now, without caring about the other person.

and a thank you ahead of time is an act of politeness, and minding their manners least they forget. so they say it ahead of time, too just in case they do not get the chance to they will say thank you a head of time to make sure that other knows full well that they have been thankful for what that other has done for them without even seeing that that person has done so.

that is the person that does this putting complete trust into that person that he or she will do this for them therefore removing hope that they will do whatever it is that they said they would.

Last edited by BW-userx; 12-03-2016 at 05:41 PM.
 
Old 12-04-2016, 03:33 AM   #7
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Huh? I was heartbroken that this didn't get marked [SOLVED] What happened?
 
Old 12-04-2016, 05:30 AM   #8
bangnagr
Member
 
Registered: Jan 2013
Posts: 48

Rep: Reputation: 4
As an Indian myself, I know in India most people in companies use word ASAP for literally everything. Here, most times they always end sentence with ASAP. "Bring that report ASAP", "Make tea for me ASAP", "Will you come here ASAP" etc etc. They are not rude, but its frustrating and irritating many times for many when they hear ASAP word. I myself have got into serious fight with many colleagues/clients when I hear the word ASAP when I am not in good mood. It sometimes feels like they are giving commands to us. One must try to avoid certain word while using forums where people across world are participating.

Having said that, let me also tell, to TB0ne, while preaching others how to use words in their questions, you have to self check how rude you are to fellow members. Using Bold letters with questions, using capitals, using stars and capitals like *DID YOU* and answering questions with irritating questions. All this while you are in Newbie section, for god sake its *NEWBIE SECTION*. What do you expect from a newbie?

I may be rude, but its important to pass this observation - I gone through several of his past posts, and have come to conclusion that - TB0ne is a racist (his writing style dramatically changes when the OP's origin country is non-west), he is a LQ troll, he is always angry and he never helps anybody. If anybody don't believe me, I request other members to go and check his past posts yourself. You will understand. He may be good at beginning days as member, but now it is clearly apparent that he has lost patience on how to behave with newbies.

I'm sorry for being rude, but I think its important for me to make this statement.

Thanks

Last edited by bangnagr; 12-04-2016 at 05:32 AM.
 
1 members found this post helpful.
Old 12-04-2016, 05:45 AM   #9
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,427
Blog Entries: 3

Rep: Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789Reputation: 3789
Relax. Smoke a J. We are all friends here, communications styles not withstanding. Postel's law is just as applicable to forums as it is to networking and other protocols:

Quote:
"... follow a general principle of robustness: be conservative in what you do, be liberal in what you accept from others."
from RFC 761
We still have not heard back from the original poster about what they have tried in regard to getting SSH keys working. Most everything else (including this) is off topic.
 
2 members found this post helpful.
Old 12-04-2016, 06:40 AM   #10
bangnagr
Member
 
Registered: Jan 2013
Posts: 48

Rep: Reputation: 4
Quote:
Originally Posted by Turbocapitalist View Post
We still have not heard back from the original poster about what they have tried in regard to getting SSH keys working. Most everything else (including this) is off topic.
He ain't gonna come back. TB0ne has scared him away, like he has done to many other newbies.
 
Old 12-04-2016, 10:07 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,948

Rep: Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018
Quote:
Originally Posted by bangnagr View Post
As an Indian myself, I know in India most people in companies use word ASAP for literally everything. Here, most times they always end sentence with ASAP. "Bring that report ASAP", "Make tea for me ASAP", "Will you come here ASAP" etc etc. They are not rude, but its frustrating and irritating many times for many when they hear ASAP word. I myself have got into serious fight with many colleagues/clients when I hear the word ASAP when I am not in good mood. It sometimes feels like they are giving commands to us. One must try to avoid certain word while using forums where people across world are participating.
What people do elsewhere isn't of concern..what is SAID is of concern. I don't care if you walk into peoples offices every day and say "Hey moron, get up and get me tea", that won't fly elsewhere. As you say, when you're participating in forums across the world, you do need to be mindful, don't you? And I very much appreciate the irony of you DEFENDING the use of ASAP, and at the very same time, saying that you've gotten into "serious fight with many colleagues/clients" when THEY use it on you, because as you said.."it sometimes feels like they are giving commands".

Yet when I say it's rude...I'm somehow wrong and/or racist??
Quote:
Having said that, let me also tell, to TB0ne, while preaching others how to use words in their questions, you have to self check how rude you are to fellow members. Using Bold letters with questions, using capitals, using stars and capitals like *DID YOU* and answering questions with irritating questions. All this while you are in Newbie section, for god sake its *NEWBIE SECTION*. What do you expect from a newbie?
Bold letters, stars, etc., are called "emphasis"...since this is text on a screen, please share with everyone else how you expect that to be conveyed?
Quote:
I may be rude, but its important to pass this observation - I gone through several of his past posts, and have come to conclusion that - TB0ne is a racist (his writing style dramatically changes when the OP's origin country is non-west), he is a LQ troll, he is always angry and he never helps anybody. If anybody don't believe me, I request other members to go and check his past posts yourself. You will understand. He may be good at beginning days as member, but now it is clearly apparent that he has lost patience on how to behave with newbies. I'm sorry for being rude, but I think its important for me to make this statement.
My reply style changes based on the questions and other things posted. Anyone posting "gimme a script for xxx" will get the same reply as anyone else, regardless of where they're from. You say I never help anybody...yet my posting history says different. I sure don't see you handing out help, since this is your 'beginning days'
Quote:
Originally Posted by bangnagr
He ain't gonna come back. TB0ne has scared him away, like he has done to many other newbies.
Stop with the whining; the OP probably won't return, because they asked for a handout and were refused. Chances are they posted in ANOTHER forum, where someone did their script for them...THAT'S why we won't hear from them again.

And bangnagr, your problem seems to stem from this:
http://www.linuxquestions.org/questi...0/#post5333618

...from some time ago. Where, after I DID answer your questions one by one, you still found it necessary to be rude with such comments as:
  • Who are WE here. Please don't do that. Are you talking on behalf of all other members?
  • So why bother at all? Just go home.
  • Questioning my questions is not helping at all.
..AND you seemed to have no problem using bold letters in YOUR post, did you? And a forum MODERATOR even told you essentially the same things. Remarkably, you thanked them:
http://www.linuxquestions.org/questi...0/#post5333985

That thread where your behavior was IDENTICAL to what was posted here: questions with no apparent effort to solve them on your own. And since you're throwing around 'racist', you probably had better look at the 'racist' "Question Guidelines" link...the one written by Jeremy and the moderators, specifically TELLING PEOPLE
Quote:
Originally Posted by Question Guidelines
LQ is not a help desk, customer service line for a product you purchased or willing to do your homework (although we are happy to assist you with specifics, if you show some effort of your own!). We're a 100% volunteer organization that wants to help you help yourself.
Is *THAT* 'racist' too??? Show me where the OP posted any effort of their own, despite being asked?

You've been here two years now, and as of yet, don't seem to have even ATTEMPTED to answer anyone elses questions or even TRY to help anyone else. And yet you see fit to call me derogatory names, and say I don't help anyone???

Last edited by TB0ne; 12-04-2016 at 11:04 AM.
 
Old 12-04-2016, 11:14 AM   #12
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,949

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
+1
 
Old 12-04-2016, 12:45 PM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
I do agree with @TB0ne on the OP did not show anything to give anyone any idea at all. by what he said it was like he as a boss of a company, maybe that is where he learned how to talk to people. but nevertheless,

he stated,
Quote:
Hi All,

I have a situation here, I want to login From linux server ex. A to number of linux server remotely and want to execute df -h command on each server. Finally want to store all outcomes in one text file which will be on server A.

Please help me asap.
Thanks in advance.
where TB0ne had every right to tell him to throw us a bone on that one, (Dr. Evil reference, from Austin Powers), because the way it is stated, he was actually requesting someone in here to figure out everything for him then do his work for him and write him a fully working script. On that part I agree that @TB0ne had something to say about that. but how he ended that request is just standard lingo, if you may. that is what one can call standard procedure.

It might have been better handled if one just rolled their eyes on that last part and focused on the body of that letter instead. then replied to him the same, I need that information ASAP if you please. then left it at that.

a right back at you buddy. if ya know what I mean.

Last edited by BW-userx; 12-04-2016 at 12:48 PM.
 
1 members found this post helpful.
Old 12-04-2016, 02:59 PM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,948

Rep: Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018Reputation: 8018
Quote:
Originally Posted by BW-userx View Post
I do agree with @TB0ne on the OP did not show anything to give anyone any idea at all. by what he said it was like he as a boss of a company, maybe that is where he learned how to talk to people. but nevertheless, he stated,

where TB0ne had every right to tell him to throw us a bone on that one, (Dr. Evil reference, from Austin Powers), because the way it is stated, he was actually requesting someone in here to figure out everything for him then do his work for him and write him a fully working script. On that part I agree that @TB0ne had something to say about that. but how he ended that request is just standard lingo, if you may. that is what one can call standard procedure.

It might have been better handled if one just rolled their eyes on that last part and focused on the body of that letter instead. then replied to him the same, I need that information ASAP if you please. then left it at that.
I agree that I could have probably left off the part about "ASAP", but that is what was called a "teachable moment", to me. Instead of letting someone continue to do such things, and (as bangnagr said, "its frustrating and irritating many times for many when they hear ASAP word. I myself have got into serious fight with many colleagues/clients when I hear the word ASAP when I am not in good mood"), get people even MORE wound-up later, it's best to catch it up front, in my opinion.

And I am fairly entertained by the fact I am called a 'racist' for saying something, when my replies to iPad and Ardvark71 have been FAR more harsh, and those are just from recent memory. I wasn't trying to be insulting to the OP, and even told them specifically we would be happy to help. But I have no patience for flumps...and handups are far different than handOUTS.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to execute a ssh script on Linux server from Windows through a bat script? wanna13e Programming 13 10-23-2009 02:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:00 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