[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Re: shell executando shell em maquina remota
From: |
Geison Farias |
Subject: |
Re: [shell-script] Re: shell executando shell em maquina remota |
Date: |
Thu, 10 Nov 2005 17:38:22 -0300 |
User-agent: |
Mozilla Thunderbird 1.0.6 (Windows/20050716) |
Olá,
Tente executar/testar primeiro o comando diretamente do prontp sem estar
dentro do script
ssh suporte@192.168.1.75 - 5960 "/usr/backup/pg_cria_clone.sh"
e verifique se permanece ainda pendurado.
Depois, por parte, vá adicionando e testando....
Agora me esclareça, o que faz este "- 5960" pois a sintaxe que conheço
do ssh para porta é "-p PORTA"
não ví no manual o que, o hifem, sozinho faz. :-)
(pode ser em private, para não poluir a lista)
[]'s
Geison
Recife - PE
MrBiTs escreveu:
/*
MrBits, segue as duas shell e arquivo de log.
Se puder me ajudar, agradeço
*/
Tente fazer a chamada um pouco diferente:
#!/bin/sh
su - suporte -c "ssh suporte@192.168.1.75 - 5960
\"/usr/backup/pg_cria_clone.sh\"" - suporte
- shell executando shell em maquina remota, weberlf, 2005/11/10
- RE: [shell-script] shell executando shell em maquina remota, MrBiTs, 2005/11/10
- Re: shell executando shell em maquina remota, weberlf, 2005/11/10
- Re: shell executando shell em maquina remota, weberlf, 2005/11/10
- RE: [shell-script] Re: shell executando shell em maquina remota, MrBiTs, 2005/11/10
- Re: shell executando shell em maquina remota, weberlf, 2005/11/10
- RE: [shell-script] Re: shell executando shell em maquina remota, MrBiTs, 2005/11/10
- Re: [shell-script] Re: shell executando shell em maquina remota,
Geison Farias <=
- Re: shell executando shell em maquina remota, weberlf, 2005/11/11