Problem running scp2 command

  • Thread starter Thread starter Gopi Jayaraman
  • Start date Start date
G

Gopi Jayaraman

We have a Windows 2000 server off which we run Secure copy
commands to pull files over from a Unix server to Windows
2000 server. We are trying to pull files from the Unix box
to Windows 2000 by doing a wild card search in a Windows
batch script.
But, it doesn't work. It returns an error message.
Following is the command and the error message:
Command:
scp2 -c blowfish
tusl01p@hpux23:/u09/tusl01p/AP/EDI/OUT/BAPU0382*USL01*.pdf
d:\ap\ssh\edi\out

Error Message:
fcr_parse_raw: /u09/tusl01p/ap/edi/out (src) no such file
No match
(pattern ''/u09/tusl01p//ap/edi/out/bapu0382*usl01*.pdf'')

The same command works fine if there is no wild card and
the file name is hard coded in the 'scp2' command.
We did not have this issue when we ran this command in an
NT box.

An interesting thing, the command works if the copy is
from Windows to Unix with a wild card search.

Please let me know if this is a known bug and if there is
a workaround.


We tried to work around this by modifying the command like
this:
for /f %%a IN ('ssh2 -l tusl01p hpux23
ls /u09/tusl01p/AP/EDI/OUT/BAPU0382*USL01*.pdf') do (
scp2 -c blowfish tusl01p@hpux23:%%a %appdir% >%logfile%
)

It worked this way when executing from command line. But
we are running these as jobs from Control-M. If there are
files to process, this command runs successfully from
Control-M. But if there are no files to pull, the job
hangs at the beginning of this command, never completing.
Any suggestions.

Gopi J
 
Back
Top