Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
2 votes
3 answers
6k views

Bash Script to remotely collect hostname, IP and host total memory

I am trying to write a scrip that will collect the hostname, IP and total memory installed on remote hosts from a list I feed into the script. The script will collect information from Redhat and ...
user315468's user avatar
2 votes
4 answers
34k views

get output of this command from another server via ssh

I'm trying to ssh into a server and get the system uptime using a specific command but it's failing to execute. this would work locally on almost all unix systems startuptime=`uptime | awk '{print $...
Viktova's user avatar
  • 285
0 votes
2 answers
2k views

If condition not working in script over ssh

Below shell script on SSH mode is not working. variable end_pos is getting value "Stop", but when it comes in IF loop , it doesn't check the condition and loop is getting failed. Output of command : ...
simplifiedDB's user avatar