• Support
  • Articles
  • Resources
  • Products

scprecv not working !!!

Moderator: boris

7 postsPage 1 of 1

marcus_anton
Newbie

Posts:
5
Joined: Fri Sep 14, 2012 10:29 am
by marcus_anton » Fri Sep 14, 2012 10:37 am
Hi guys,

I am trying to copy a file from my local computer to a "linux" equipment and this is what I have written in logmett code :

connect 'IP_Host_address:2222 /ssh /2 /auth=password /user=username /passwd=password'
wait '$'
scprecv 'G:\test\topex113.trx'

The connection to the host is ok, but immediately after connection is successful, a windows appears with the following info : TTSSH : file open write error (as a title) and inside the windows it says : fopen:123.

Any ideas why this is happening ?

Thanks,
Mark.
boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1596
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Fri Sep 14, 2012 11:37 am
This is Macro related question. Moving this topic to TeraTerm Macro questions forum.
Thanks.
Best regards,
Boris
marcus_anton
Newbie

Posts:
5
Joined: Fri Sep 14, 2012 10:29 am
by marcus_anton » Fri Sep 14, 2012 12:18 pm
sorry about this boris.

thank you for moving my topic to the proper section.

Marcus.
marcus_anton
Newbie

Posts:
5
Joined: Fri Sep 14, 2012 10:29 am
by marcus_anton » Fri Sep 14, 2012 1:28 pm
Hi again,

I have read again the help section, and I think I should use scpsend command.
A little windows appears saying : TTSSH: Scp sending file, under it : Filename: and the file name here ..., Bytes: 0%, Time: 0:00.
Nothing changes here, no matter how long I wait ...
Do you guys have a clue on what's happening ?

Thanks,
Marcus.
marcus_anton
Newbie

Posts:
5
Joined: Fri Sep 14, 2012 10:29 am
by marcus_anton » Sat Sep 15, 2012 9:51 am
Hi guys,
So, do you guys have a clue on what the problem is ?
If i use winscp, the transfer goes fine, no problem.
Forgot to say that when using scpsend, a file appears in the designated folder, but with 0 bytes as file size.

Really don't have a clue.

Thanks,
Marcus.
Trevor
Guru

Posts:
480
Joined: Wed Jul 26, 2006 8:47 am
by Trevor » Sat Sep 15, 2012 11:28 am
Please provide the macro you are using (or snippet of).
marcus_anton
Newbie

Posts:
5
Joined: Fri Sep 14, 2012 10:29 am
by marcus_anton » Mon Sep 17, 2012 8:38 am
Hello,

This is the macro I'm using :

connect 'IP_address:22 /ssh /2 /auth=password /user=username/passwd=passwd'
wait '$'
sendln 'su'
wait ':'
sendln 'su_password'
mpause 500
scpsend 'G:\test\file_to_upload' '/tmp/file_to_upload'

Thanks,
Markus.
Display posts from previous:
Sort by:

7 postsPage 1 of 1

Users browsing this forum: No registered users
cron