8

Implementing cat>fileName command in NASM

view full story
linux-howto

http://stackoverflow.com – I try to implement cat>filename command in NASM in Ubuntu 11.04 using system calls. My program is compiled successfully and run successfully (seems so). But whenever I tried to fire cat filename command it shows "No such file or directory" yet I see the file residing in the directory. And if I try to open the file by double clicking it shows me "You do not have the permissions necessary to open the file." Can you please help me to find the errors in my code? The code is following: section .data msg: dd "%d",10,0 msg1: db "cat>",0 length: equ $-msg1 section .bss (HowTos)