I'm want to write a script to find out what system call a function is in. I want to basically do something like
strace -p 9999 | head -1 of course the problem is if the function is sitting in say accept you never get a whole line so it just hangs. at the moment the only way I can see around this is to use perl and do an alarm or something and kill strace from there so it exits. Can anyone think of a better way? -- John Ferlito Senior Engineer Bulletproof Networks ph: +61 (0) 2 9663 9077 fax: +61 (0) 2 9662 4744 mob: +61 (0) 410 519 382 http://www.bulletproof.net.au/ This e-mail and any attachments are confidential and may be legally privileged. Only the intended recipient may access or use it and no confidentiality or privilege is waived or lost by mistaken transmission. If you are not the intended recipient you must not copy or disclose this email's contents to any person and you must delete it and notify us immediately. Bulletproof Networks uses virus scanning software but excludes all liability for viruses or similar in any attachment as well as for any error or incompleteness in the contents of this e-mail. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
