Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-09-2009, 06:53 AM   #1
LQ Newbie
Registered: Jan 2009
Location: Chennai, India
Distribution: Redhat
Posts: 23

Rep: Reputation: 17
Question unknown escape sequence: '\040'

Hello folks ..
am trying to understand ptrace for my project by running few trial program ..

i get this error
unknown escape sequence: '\040'

this is one of those trial programs
/* `tracer' parent */
#include <sys/ptrace.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
int pid, status;
if((pid = fork()) == 0) {
execl("/home2/lfy/child1", "child1", 0);
printf("exec failed...\n");
} else {
kill(pid, SIGINT);
wait(&status); // wait for child to stop
printf("child has stopped...\n");
ptrace(PTRACE_CONT, pid, 0, 0);
/* Will not come out of this wait because
* child does not terminate.

/* compile this program to `child1' */
#include <sys/ptrace.h>
ptrace(PTRACE_TRACEME, 0, 0, 0);
while(1) printf("hello\n");

thank you
Old 03-09-2009, 07:48 AM   #2
LQ Newbie
Registered: Mar 2009
Posts: 3

Rep: Reputation: 0
I have faced the same issue it is because of your editor version, kindly use vi instead of gedit or vice versa to identify the these special characters.

Eclipse is also a good choice for trying c programming



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unknown Netbios Packets to Unknown Network fukawi2 Linux - Networking 2 09-17-2007 06:41 PM
escape sequence help in C name_in_use450 Linux - General 6 07-01-2004 09:23 AM
escape sequence for changing color of prompt killer_bunny Linux - General 1 02-10-2004 07:40 PM
smiley face escape sequence problem mandrakeroot Programming 12 09-06-2003 06:11 PM
apache 2.040 dkhat Linux - General 0 02-26-2003 10:56 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration