Topic "Checkin and checkout command"

Author Message
Guest




Im receiving an error message when trying to run a custom command for checkin /checkout of files
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Hmm, useful piece of information. Please read How to ask for support.
grobyc17

Guest


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
grobyc17

Guest


my command for checkout = co -l "!"
my command for checkin = ci -u "!"

my typo error
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
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.
_________________
Martin Prikryl
grobyc17

Guest


yup, you're right...
i'm really looking forward on the next version...
thanks and keep up the good work!!!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Have you tried to redirect the stderr to /dev/null?
Code:
co -l "!" 2> /dev/null

_________________
Martin Prikryl
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]
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
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.
_________________
Martin Prikryl
grobyc17

Guest


that's too bad for me... Sad

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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
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?
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License