Search Results

Search: Posts Made By: new2prog
795
Posted By RudiC
How about shifting the mail command after the...
How about shifting the mail command after the loop?
795
Posted By Scrutinizer
That is because the mail command is inside the...
That is because the mail command is inside the loop. Also you can redirect the loop output to the file

You could try:
#!/bin/sh
for i in system1 system2 system3
do
ssh $i df -h | sed -n...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 08:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy