Sponsored Content
Top Forums Programming Interview question ...pls help!! Post 302229239 by jim mcnamara on Tuesday 26th of August 2008 01:37:46 PM
Old 08-26-2008
This really smells like homework to me. If it is an interview question and you do not know the answer, you would be more than foolish to attend the interview. Even if you make it past the interview you would be let go for falsifying your credentials later on.

Either way - I don't know.

Answer depends on the OS - possibly one of these: truss, tusc, strace, maybe ptrace.
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Pls Ans this question ...

In the Text file ex sample.txt cat sample.txt morning evening night bye __________________ i want add text "Good " i front of all the words . u have to use one vi command only or u can write script also o/p should be like this cat sample.txt Good morning Good evening (7 Replies)
Discussion started by: premnathk
7 Replies

2. Shell Programming and Scripting

Shell script interview question...help required urgent!!!

hi i have cancelled my previous post (2 Replies)
Discussion started by: choco4202002
2 Replies

3. UNIX for Dummies Questions & Answers

Interview question....help

what distros have you selected in the past, for which applications, and why did you choose them? Would you make the same choices again, knowing what you know now? Any help will be really appreciated!! (2 Replies)
Discussion started by: choco4202002
2 Replies

4. UNIX for Dummies Questions & Answers

UNIX/Linux interview question

Hi, I went for an interview this morning. The questions I was asked.... 1. On Redhat, you have downloaded a program called XYZ. You did all kinds update to this program. Now you are ready to move this to production. How would you do it? He already said he doesn't want to use "tar &... (2 Replies)
Discussion started by: samnyc
2 Replies

5. UNIX for Dummies Questions & Answers

Suggestions for the interview

Hi guys, i'm undergoing a traning in solaris administration and i request if any one have an idea on the interview questions on solaris. thank you. (3 Replies)
Discussion started by: 038karthik
3 Replies

6. Shell Programming and Scripting

pls help kinda difficult question for a beginner

1. Create a directory script (project_dir.sh) · Write a script in your home directory to create a subdirectory called “PROJECT<99>” within your home directory on the Ubantu/Linux server. <99> is your project number (e.g. 01,02,03, ... 15). · The script must test whether... (1 Reply)
Discussion started by: bugenhagen_
1 Replies

7. UNIX for Dummies Questions & Answers

Interview question

A process(apache/webservice) is continually writing a log(it is a single log, there are no several logs with different file names) onto a unix system. the file system is filling up. How do you handle the situation. Is there a way to handle this situation without killing the parent process.(... (1 Reply)
Discussion started by: ramky79
1 Replies

8. Red Hat

Linux administrator interview question

pls any one tell all the interview question about linux administrator for L1 and L2... (3 Replies)
Discussion started by: deepansekaran
3 Replies
Net::DNS::Question(3)					User Contributed Perl Documentation				     Net::DNS::Question(3)

NAME
Net::DNS::Question - DNS question class SYNOPSIS
"use Net::DNS::Question" DESCRIPTION
A "Net::DNS::Question" object represents a record in the question section of a DNS packet. METHODS
new $question = Net::DNS::Question->new("example.com", "MX", "IN"); Creates a question object from the domain, type, and class passed as arguments. RFC4291 and RFC4632 IP address/prefix notation is supported for queries in in-addr.arpa and ip6.arpa subdomains. parse ($question, $offset) = Net::DNS::Question->parse($data, $offset); Parses a question section record at the specified location within a DNS packet. The first argument is a reference to the packet data. The second argument is the offset within the packet where the question record begins. Returns a Net::DNS::Question object and the offset of the next location in the packet. Parsing is aborted if the question object cannot be created (e.g., corrupt or insufficient data). qname, zname print "qname = ", $question->qname, " "; print "zname = ", $question->zname, " "; Returns the domain name. In dynamic update packets, this field is known as "zname" and refers to the zone name. qtype, ztype print "qtype = ", $question->qtype, " "; print "ztype = ", $question->ztype, " "; Returns the record type. In dymamic update packets, this field is known as "ztype" and refers to the zone type (must be SOA). qclass, zclass print "qclass = ", $question->qclass, " "; print "zclass = ", $question->zclass, " "; Returns the record class. In dynamic update packets, this field is known as "zclass" and refers to the zone's class. print $question->print; Prints the question record on the standard output. string print $qr->string, " "; Returns a string representation of the question record. data $qdata = $question->data($packet, $offset); Returns the question record in binary format suitable for inclusion in a DNS packet. Arguments are a "Net::DNS::Packet" object and the offset within that packet's data where the "Net::DNS::Question" record is to be stored. This information is necessary for using compressed domain names. COPYRIGHT
Copyright (c) 1997-2002 Michael Fuhr. Portions Copyright (c) 2002-2004 Chris Reinhardt. Portions Copyright (c) 2003,2006-2009 Dick Franks. All rights reserved. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
perl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet, Net::DNS::Update, Net::DNS::Header, Net::DNS::RR, RFC 1035 Section 4.1.2 perl v5.12.1 2009-12-30 Net::DNS::Question(3)
All times are GMT -4. The time now is 12:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy