Unix/Linux Go Back    

Showing results 1 to 5 of 5
Search took 0.01 seconds.
Search: Posts Made By: mharald
Forum: Shell Programming and Scripting Linux 07-13-2013
Replies: 5
Views: 3,467
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...
Forum: Shell Programming and Scripting Linux 07-12-2013
Replies: 5
Views: 3,467
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...
Forum: Shell Programming and Scripting Linux 07-12-2013
Replies: 5
Views: 3,467
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...
Forum: Shell Programming and Scripting Linux 12-18-2009
Replies: 2
Views: 2,565
Posted By mharald
Thanks! It worked!

Thanks! It worked!
Forum: Shell Programming and Scripting Linux 12-18-2009
Replies: 2
Views: 2,565
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 11:41 AM.