[Roma.pm] FW: Net::SSH non esegue un cd anche con SSH2

Fabio D'Alfonso fabio.dalfonso at fabiodalfonso.com
Wed Feb 25 08:11:35 PST 2009


Ho capito.

 

Tar cvf invece di zcf  !

 

Scusate


 

Ciao

 

Fabio D'Alfonso
'Your Partner in Business'
cell.  +39.348.059.40.22 
web:  <http://www.fabiodalfonso.com/> www.fabiodalfonso.com
email:  <mailto:fabio.dalfonso at fabiodalfonso.com>
fabio.dalfonso at fabiodalfonso.com 
fax: +39.06.874.599.581

BlackBerry® Wireless Enabled Address.

  _____  

From: Fabio D'Alfonso [mailto:fabio.dalfonso at fabiodalfonso.com] 
Sent: Wednesday, February 25, 2009 5:06 PM
To: 'roma at pm.org'
Subject: RE: [Roma.pm] Net::SSH non esegue un cd anche con SSH2

 

Buongiorno,

Grazie Flavio.

 

Questo comando stranamente (o no?) continua indefinitamente a infilare nel
tar (ad 1 GB ho stoppato) il tar lanciato a mano e’ 263 MB.

  

$ssh->cmd('cd /home/ ; tar cvf cvsroot-test.tgz cvsroot');

 

Sto toppando
.

 

Ma dove?

 

Grazie

 

Fabio D'Alfonso
'Your Partner in Business'
cell.  +39.348.059.40.22 
web:  <http://www.fabiodalfonso.com/> www.fabiodalfonso.com
email:  <mailto:fabio.dalfonso at fabiodalfonso.com>
fabio.dalfonso at fabiodalfonso.com 
fax: +39.06.874.599.581

BlackBerry® Wireless Enabled Address.

  _____  

From: roma-bounces+fabio.dalfonso=fabiodalfonso.com at pm.org
[mailto:roma-bounces+fabio.dalfonso=fabiodalfonso.com at pm.org] On Behalf Of
Flavio Poletti
Sent: Wednesday, February 25, 2009 4:28 PM
To: roma at pm.org
Subject: Re: [Roma.pm] Net::SSH non esegue un cd anche con SSH2

 

L'esecuzione di più di un comando è legata alla gestione automatica di più
connessioni con una sola procedura di autenticazione, il che rende più
rapido il tutto. Ciascuna connessione, però, è indipendente dalle altre e
risulta normalmente nell'esecuzione di una shell differente.

 

Il risultato è che devi spostarti nella directory e lanciare il tar con un
comando unico:

 

$ssh->cmd('cd /path/to/somewhere; tar xvzf /tmp/backup.tar.gz .');

 

oppure vedere se le opzioni di tar ti sono d'aiuto (ad esempio
-C|--directory). Per cose complesse probabilmente è più pulito effettuare
l'upload di uno script ed eseguirlo remotamente.

 

Ciao,

 

   Flavio.

 

On Wed, Feb 25, 2009 at 3:41 PM, Fabio D'Alfonso
<fabio.dalfonso at fabiodalfonso.com> wrote:

Buongiorno,

se ho capito bene quando la connessione è  con protocollo SSH 2 si può
eseguire più di un comando.

 

Io dovrei spostarmi in una diversa dir e lanciare un tar, ma non si sposta
affatto.

 

 

Qualcuno ha usato Net::SSH::Perl e  mi può dare qualche suggerimento?

 

Grazie

 

Fabio D'Alfonso
'Your Partner in Business'
cell.  +39.348.059.40.22 
web:  <http://www.fabiodalfonso.com/> www.fabiodalfonso.com
email:  <mailto:fabio.dalfonso at fabiodalfonso.com>
fabio.dalfonso at fabiodalfonso.com 
fax: +39.06.874.599.581

BlackBerry® Wireless Enabled Address.

 



__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3888 (20090225) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


_______________________________________________
Roma mailing list
Roma at pm.org
http://mail.pm.org/mailman/listinfo/roma

 



__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3888 (20090225) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/roma/attachments/20090225/ce65983a/attachment-0001.html>


More information about the Roma mailing list