04-21-2006
few new bie questions related to gdb , telnet
Hi All,
1. how to what is the current line we are executing. List command will display the 10 lines by default.
2. how to put a pointer to the current excuting line when executing the list.
2. if i have set one break point and i want to set 2nd break point do i need to delete the first break point and then run command once again or i need to do continue then again it will hit the 2nd break point?
3. in vi editor i wasnted to replace one string by follwoing:
(replcae /abc with /xyz/lmn
1,$s/^\/abc/\/xyz\/lmn/g
but i am unable to type \ after ^..
4. i am using debian os and want to enable telent by uncommenting telnet in .etc/inet.d file but i need to reboot the system to make it effective. Is there any command i can achive with out reboot?
5. i am unabel to do gdb on the following program:
---------------
#include<stdio.h>
void fun1();
void fun2();
main()
{
printf ("hello");
fun1();
fun2();
void fun1()
{
printf("helo1");
}
void fun2()
{
printf("helo2");
}
}
---------
i compile it by using the following command:
gcc -g a.c -o a.o
then i am getting the following error:
balbld01@/home/gauria{29} gdb a.o
GNU gdb 5.1.0.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader.
(gdb) b fun1
No symbol table is loaded. Use the "file" command.
(gdb)
Could nay one help me in all of my queries.
Thanks in advance.
Regards
Gauri
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I am a new bie and learning linux step by step. I am googling a lot but still unabel to find few things like below:
1. how to clean ipcs if I reboot the system it is cleaned but can I do that with out rebooting the system
2. I don't have any in side the folder /usr/src and one of my... (2 Replies)
Discussion started by: gauri
2 Replies
2. Solaris
Hello Gurus
I would like to know more about ndd commands related to ethernet(NIC) like how to set link_status, link_speed & link_mode as I know how to check these value. And I also would like to know how to make these setting permanents after reboot as I know that these setting will vanish... (5 Replies)
Discussion started by: amity
5 Replies
3. UNIX for Dummies Questions & Answers
Hello Guys
I am a complete New bie in UNIX ( Just know a few of the commands ). Please guide how should I learn Unix In a proper way . I am doing a job, so i will have to do the study at home . Which books , Links, Pages you will suggest me so that i can learn UNIX fast .
Thanks (5 Replies)
Discussion started by: supercops
5 Replies
4. UNIX for Dummies Questions & Answers
I have two issues; any help regarding this would be highly appreciated.
We deployed a file abc using pqr id. So the owner is of abc file (shell script) is ‘pqr'. However, abc file is executed by ESP event and uses the id ‘xyz'. When the file abc is executed the owner of... (9 Replies)
Discussion started by: clearC
9 Replies
5. IP Networking
I have two items, only related because they are both regarding dhcpd.
First of all, I keep seeing dhcpd responding to DHCPREQUESTs on eth1 which is my cable modem. For example:
Sep 12 21:00:09 plague dhclient: DHCPREQUEST on eth1 to 204.186.xxx.xxx port 67
Sep 12 21:00:09 plague dhcpd:... (2 Replies)
Discussion started by: NESter
2 Replies
6. Shell Programming and Scripting
Hi All,
I am trying to dowmload the zip file "zkManageCustomers.zip " but i dont have access. Can anyone help me to download this file
See the below link-
http://www.ibm.com/developerworks/opensource/library/wa-aj-open/index.html?ca=drs-
Please help me as early as... (1 Reply)
Discussion started by: aish11
1 Replies
7. IP Networking
from my understanding
step 1:
From device A to device B , sending SYN.
SYN=1
ACK=0
Ackno=0
Sequence number=2000
step 2:
from device B to A , sending SYN-ACK
SYN=1
ACK=1
ACKno=2001
Sequence number= 5000
Step :3 (4 Replies)
Discussion started by: baker
4 Replies
8. Red Hat
Hi,
Can you answer the following ?
How to identify server is physical or virtual server ?
Why often patching is done in servers ?What is the purpose of doing OS patching in servers. ?
Regards,
Maddy (5 Replies)
Discussion started by: Maddy123
5 Replies
9. Shell Programming and Scripting
I wrote this code, questions follow
#! /bin/bash -f
# Purpose - to show how if syntax is used within an awk
clear;
ls -l;
echo "This will print out the first two columns of the inputted file in this directory";
echo "Enter filename found in this directory";
read input;
... (11 Replies)
Discussion started by: Seth
11 Replies
LEARN ABOUT OPENSOLARIS
telnetrc
telnetrc(4) File Formats telnetrc(4)
NAME
telnetrc - file for telnet default options
DESCRIPTION
The .telnetrc file contains commands that are executed when a connection is established on a per-host basis. Each line in the file con-
tains a host name, one or more spaces or tabs, and a telnet(1) command. The host name, DEFAULT, matches all hosts. Lines beginning with the
pound sign (#) are interpreted as comments and therefore ignored. telnet(1) commands are case-insensitive to the contents of the .telnetrc
file.
The .telnetrc file is retrieved from each user's HOME directory.
EXAMPLES
Example 1: A sample file.
In the following example, a .telnetrc file executes the telnet(1) command, toggle:
weirdhost toggle crmod
# Always export $PRINTER
DEFAULT environ export PRINTER
The lines in this file indicate that the toggle argument crmod, whose default value is "off" (or FALSE), should be enabled when connecting
to the system weirdhost. In addition, the value of the environment variable PRINTER should be exported to all systems. In this case, the
DEFAULT keyword is used in place of the host name.
FILES
$HOME/.telnetrc
SEE ALSO
telnet(1), in.telnetd(1M), environ(5)
SunOS 5.10 9 Jan 1998 telnetrc(4)