Tftp

I run this script and get the error below. note that the ftp.ls() works fine
:confused:

{
TAuthenticate::SetGlobalUser(“gold”);
//root://fcdfdata047.fnal.gov//cdf/scratch/manca/stn/trileptons/D0_point/giulia2.stn.0605
TFTP ftp(“root://fcdfdata047.fnal.gov”);
if(! ftp.IsOpen())
exit 0;
// ftp.ListDirectory();
ftp.cd("/cdf/scratch/manca/stn/trileptons/D0_point/");
ftp.ls();
ftp.Print();
int info = ftp.GetFile(“giulia2.stn.0605”,“giulia2.stn.0605”);
cout << " info " << info << endl;
}
/*************
Remote host: fcdfdata047.fnal.gov [1094]
Remote user: gold
TCP window size: 65535
Rootd protocol: 4
Transfer block size: 524288
Transfer mode: binary
Bytes sent: 0
Bytes received: 0
Error in TFTP::GetFile: bad op code
info -1

This is the end of ROOT – Goodbye
***************/

Hello,

Unfortunately I could not reproduce the problem with a recent version of ROOT.
Could you please specify which versions your are running (on both server and client sides)?

Cheers,
G. Ganis