I run this script and get the error below. note that the ftp.ls() works fine
{
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
***************/