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 RLUG@lists.lug.ro http://lists.lug.ro/mailman/listinfo/rlug