On executing the command
[oracle@erp sales]$ ls -ld /sales/*
-rw-rw-r-- 1 oracle oracle 166710 Nov 15 08:54 /sales/?
-------------------------------------------------------------------------------
If i run the same command from command prompt it copies the file successfully
On running same command from script I am getting following message but in sales folder i am getting '?'
crmemo.csv 100% 163KB 162.8KB/s 00:00
--------------------------------------------------------------------------------
output of script with -v scp...
---------------------------------------------------
[oracle@erp ~]$ . make_copy.sh
TEST
Executing: program /usr/bin/ssh host 172.16.0.11, user oracle, command scp -v -
/back/crmemo.csv
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 172.16.0.11 [172.16.0.11] port 22.
debug1: Connection established.
debug1: identity file /home/oracle/.ssh/identity type -1
debug1: identity file /home/oracle/.ssh/id_rsa type 1
debug1: identity file /home/oracle/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.9p1
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 '172.16.0.11' is known and matches the RSA host key.
debug1: Found key in /home/oracle/.ssh/known_hosts:1
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,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: An invalid name was supplied
Cannot determine realm for numeric host address
debug1: An invalid name was supplied
Cannot determine realm for numeric host address
On which OS are you ? what does the -f option do ?
you should specify source and destination, i only see the sourcefile, but not the target location ...
nops, i tried to copy the file on root but same problem... getting file name as '?' but i opened the file ($ vi ?) it shows the contents of original file.
This mean i am successfully copying the file but problem is with name ....