You are here: Re: [PHP] shell expansion (globbing) from inside php cli script « PHP « IT news, forums, messages
Re: [PHP] shell expansion (globbing) from inside php cli script

Posted by Brian V Bonini on 06/30/05 17:13

On Wed, 29 Jun 2005, Bob Winter wrote:
> Brian,
>
> The script works for me, I should have included the screen
> input/output, which now follows:
>

Hmmm, this simply does not work for me. Maybe something with my version of
php or ssh.. I'm at a loss..

$ php -v
PHP 4.3.5 (cli) (built: Apr 30 2004 14:27:11)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.6, Copyright (c) 2003-2004, by Zend
Technologies
with Zend Optimizer v2.5.7, Copyright (c) 1998-2004, by Zend
Technologies
with <b>DISABLED</b> Zend Download Server v1.0.2, Copyright (c)
2003-2004, by Zend Technologies
with <b>DISABLED</b> Zend Performance Suite v4.1.0-platform, Copyright
(c) 1999-2004, by The Accelerator presently supports only Apache, ISAPI
and FastCGI SAPIs
with Zend Debugger v3.5.2a, Copyright (c) 1999-2004, by Zend
Technologies
with sqlite wrapper v1.0, Copyright (c) 2004, by Zend Technologies
with java wrapper v1.0, Copyright (c) 2004, by Zend Technologies


Executing: program /usr/local/bin/ssh host xxxxxxx,
user xxx, command scp -v -f
/www/files/services/include/niche/paa/include/niche/atc_syc/{q,w,e,r}
OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 17 Mar 2004
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Connecting to stagingcws.traderonline.com [10.222.132.174] port
22.
debug1: Connection established.
debug1: identity file /home/bonini/.ssh/identity type -1
debug1: identity file /home/bonini/.ssh/id_rsa type -1
debug1: identity file /home/bonini/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version
OpenSSH_3.5p1
debug1: match: OpenSSH_3.5p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'xxxxxxx' is known and matches the RSA
host key.
debug1: Found key in /home/bonini/.ssh/known_hosts:10
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/bonini/.ssh/identity
debug1: Trying private key: /home/bonini/.ssh/id_rsa
debug1: Offering public key: /home/bonini/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 435
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/bonini/.ssh/id_dsa':
debug1: read PEM private key done: type DSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending command: scp -v -f
/www/files/services/include/niche/paa/include/niche/atc_syc/{q,w,e,r}
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
scp:
/www/files/services/include/niche/paa/include/niche/atc_syc/{q,w,e,r}: No
such file or directory
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.2 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 1
string: scp -v
user@cname.domain.com:/www/files/services/include/niche/paa/include/niche/atc_syc/{q,w,e,r}
/www/files/services/include/niche/paa/include/niche/atc_syc/tmp/.
status: 1
Array
(
)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация