- Guest
Checkin and checkout command
Advertisement
Im receiving an error message when trying to run a custom command for checkin /checkout of files
Advertisement
-
martin◆
Site Admin - Joined:
- Posts:
- 41,441
- Location:
- Prague, Czechia
Re: Checkin and checkout command
Hmm, useful piece of information. Please read How to ask for support.
-
grobyc17
Guest
Checkin/out 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
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
-
grobyc17
Guest
checkin/out error
my command for checkout = co -l "!"
my command for checkin = ci -u "!"
my typo error
my command for checkin = ci -u "!"
my typo error
-
martin◆
Site Admin
Re: checkin/out error
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.
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.
Advertisement
-
grobyc17
Guest
checkin/out error
yup, you're right...
i'm really looking forward on the next version...
thanks and keep up the good work!!!
i'm really looking forward on the next version...
thanks and keep up the good work!!!
-
martin◆
Site Admin - Joined:
- Posts:
- 41,441
- Location:
- Prague, Czechia
Re: checkin/out error
Have you tried to redirect the stderr to /dev/null?
co -l "!" 2> /dev/null
-
grobyc17
Guest
I've tried your resolution but I've got an error message:
"Host has not answered for more than 15 seconds. Still Waiting..."
...
[Abort]
"Host has not answered for more than 15 seconds. Still Waiting..."
...
[Abort]
-
martin◆
Site Admin
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.
Advertisement
-
grobyc17
Guest
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
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
-
martin◆
Site Admin - Joined:
- Posts:
- 41,441
- Location:
- Prague, Czechia
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?
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?
Advertisement
You can post new topics in this forum