On 02/02/2011 10:02 AM, Josh Trutwin wrote:
> Hi all, hoping someone has some experience scripting screen, the best
> powertool ever.  :)
>
> I have a little csh script I use to apply long running processes to
> various boxen - condensed for illustration:
>
> runit.sh:
> #!/bin/csh
>
> foreach lin (lin1 lin2 linfoo linbaz)
>   ssh $lin "$1"
> end
>
Try adding -t to the ssh command. You might need a pseudo-tty.