You have so far never mentioned that the command may ask for anything. You cannot use such commands with WinSCP. You solution with "message box" is not feasible. WinSCP can hardly understand the meaning of what the command prints. So it cannot find the "question" in the text, nor know what answers (buttons) it may offer.
Does the "timeout" message show only for the commands that ask for something or does it show for any command?
Don't the "ci" command have some switch to override the "unchanged file" warning?
that's too bad for me... :(
maybe it's better to pop up
what the message show like in the putty
and let the user decide what should be done...
Ex:
in checking out file
co -l ufintXXX.sqr
putty message to win message box:
-----------------------------------------
|Check Out File |
-----------------------------------------
| ufintXXX.sqr,v --> ufintXXX.sqr |
| revision 1.1 (locked) |
| done |
| |
| [ OK ] |
-----------------------------------------
User interaction: click [ OK ]
in checking in file
ci -u ufintXXX.sqr
putty message to win message box
--------------------------------------------------------------
|Check Out File |
--------------------------------------------------------------
| |
|ufintXXX.sqr,v <-- ufintXXX.sqr |
|new revision: 1.2; previous revision: 1.1 |
|File ufintXXX.sqr is unchanged with respect to revision 1.1 |
|checkin anyway? |
| [ YES ] [ NO ] |
--------------------------------------------------------------
something like that....
thanks anyway...
grobyc17
Hmm, that's pity. Strangely it works for me, at least for simple commands. It may be also caused by different shell. I'm using bash.
I've tried your resolution but I've got an error message:
"Host has not answered for more than 15 seconds. Still Waiting..."
...
[Abort]
yup, you're right...
i'm really looking forward on the next version...
thanks and keep up the good work!!!
I belive that the command is actually executed correctly. Is it?
WinSCP just thinks that it has not, as the command prints message on error output. I may try to solve this in the next version.
my command for checkout = co -l "!"
my command for checkin = ci -u "!"
my typo error
Here's the error when I try to checkout the file
using the command co -u "!"
<invalid hyperlink removed by admin>
but in PuTTy the command ended successfully...
also in the when I try to checkin the file
<invalid hyperlink removed by admin>
please help me...
thank you so much in advanced
Im receiving an error message when trying to run a custom command for checkin /checkout of files