On 06/09/2014 12:32 PM, Pavan Kumar wrote:
> I have tried what you have suggested (with -f filename). File is
> getting transferred from publisher end to subscriber end. But I am not
> able to run the received file at subscriber end. When I tried to run
> the transferred file below is the error:
...was curious and tried with the two commands (two consoles):
stefanoco@stefanocopc:~/Documents/code/orig$ mosquitto_pub -h
somehost.somewhere.com -t "/dev/bin" -f main
stefanoco@stefanocopc:~/Documents/code/dest$ mosquitto_sub -N -h
somehost.somewhere.com -t "/dev/bin">main
and it works: file is correct, and it runs. Without "-N" works again
even if a newline is appended at the end. Are you using latest build of
mosquitto?