AnsweredAssumed Answered


Question asked by jesse.gonzalez on Jan 5, 2008
Latest reply on Nov 14, 2016 by DavidJF
I am attempting to use the perl API to upload a file to robots, and have come across the 'file_put_start probe' command.

So far I have the following:

$pds = Nimbus::smileytongue:DS->new();

$pds->string("directory", "/opt/nimbus/bin");
$pds->string("file", "");
$pds->string("type", "");
$pds->string("mode", "0700");

($ret, $pdsret) = nimRequest("", 48000, "file_put_start", $pds->data(), 30);

I do see the file created in the specified directory on the robot, but the file only contains a single null byte. The file exists in the directory I am running the perl script from. What should 'type' be? Would this be a correct way to transfer a binary file to a collection of robots?

Also, the last line, nimRequest(), causes a double free or corruption segfault occasionally, so I'm not sure what is going on there.

Thanks for any help/insight.