Dolphin06 <[EMAIL PROTECTED]> writes: > I dont get it right, i always display only the first one, and i dont know how > to write a scalar variable. > I tried like this : > ssh [EMAIL PROTECTED] script2 -f "[EMAIL PROTECTED]"
This passes every element of my_array as a separate argument. Also, ssh causes the command line to be parsed a second time on the remote host, so you have use two levels of quotes. $ ssh [EMAIL PROTECTED] script2 -f "'${my_array[*]}'" Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."