Search Results

Search: Posts Made By: mharald
8,209
Posted By mharald
Never thought of using it for ssh. I wonder if it...
Never thought of using it for ssh. I wonder if it iterates all variables as expected. I will give it a try!Thanks. Your improvement advice actually reflects my running script (more or less :))

I...
8,209
Posted By mharald
Yes, makes sense (now that you mention it :)) ...
Yes, makes sense (now that you mention it :))

But that's the nice thing about BASH, there's no "No way out" problem:

#!/bin/bash
TEST=test
TEST1=(test1 test2 test3)
ssh server...
8,209
Posted By mharald
Iterate array using loop over ssh
A simple script:

#!/bin/bash
test=test
test1=(test1 test2 test3)
echo ${test1
}
ssh server 'echo '$test'; echo '${test1
}' ; echo '${test1[1]}' ; for m in $(seq 1 $(echo '${test1
}' | tr...
3,173
Posted By mharald
Thanks! It worked!
Thanks! It worked!
3,173
Posted By mharald
BASH Problem / Question regarding redirection
Hi all,

Maybe someone is able to help:

Need to redirect the output of a command in realtime to a second command. Command-A executes a remote shell to another host, and outputs its results....
Showing results 1 to 5 of 5

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