Stack Overflow to the rescue http://stackoverflow.com/questions/6395288/double-vs-single-quotes
2015-03-06 15:40 GMT+02:00 Bogdan Leonte <[email protected]>: > Salutare, > > Folosind ruby, am nevoie de o variabila definita local intr-o conexiune > remote ssh de genul: > ________________________ > NUME_VAR="lala123" > > Net::SSH.start( HOST, USER ) do |ssh| > create_file = ssh.exec!('sudo mkdir /path/to/; \ > sudo touch /path/to/file; \ > echo #{NUME_VAR} > /path/to/file' ) > end > ________________________ > > > Aveti idee cum as putea sa fac ? > > Multumesc. > > _______________________________________________ > RLUG mailing list > [email protected] > http://lists.lug.ro/mailman/listinfo/rlug -- Iulian Dogariu http://www.iuliandogariu.com/ GPG: 0xB364B5AE _______________________________________________ RLUG mailing list [email protected] http://lists.lug.ro/mailman/listinfo/rlug
