09-19-2009
Remember to use the syntax ${1} and ${11} rather than $1 and $11 when composing strings.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
When I login to a specific machine (running Solaris 2.8; actually serveral machines behave this way), with a known good account, I don't get any shell prompt, and no screen responses to various commands such as ID and PWD. Any ideas on what is causing this, and how to change this behavior? (2 Replies)
Discussion started by: Mufasa
2 Replies
2. UNIX for Dummies Questions & Answers
Hi, I´m using SCO Unix 5.0.5 and I want to configure de variable PS1, so when I type the command:
cd /etc/
the prompt shows
/etc/_>
Is that possible with sh shell? I´ll appreciate your help.
Thanks, a Happy New Year! (1 Reply)
Discussion started by: diegoe
1 Replies
3. UNIX for Dummies Questions & Answers
currently, I set my prompt in my .cshrc file as:
set prompt = "%B%h %m %P %/ \n% "
I have to use certain shells for some specific tasks and would like to set different prompts depending on the type of shell that I am using. Any advice?
Thanks (3 Replies)
Discussion started by: dranNfly
3 Replies
4. UNIX for Advanced & Expert Users
Hi,
I saw something in weird in Shell prompt.
I did the following steps
1) Typed ls -l and pressed ESC without entering
2) Typed "v" (please notice that I did not type "i" after "v"), which opened vi editor
3) I see the "ls -l" command that I typed in shell prompt
4) Without modifying... (6 Replies)
Discussion started by: bobbygsk
6 Replies
5. Shell Programming and Scripting
I'm new to working with pipes, so I don't know whether the following is expected behaviour or a bug on the part of an application.
Since Version 0.47, Inkscape provides a non-GUI interactive shell mode of operation. I am trying to time the program's performance in converting SVG files to PNG... (1 Reply)
Discussion started by: ccprog
1 Replies
6. Shell Programming and Scripting
Hi,
I want to change the shell prompt, using the cd command.
I have a shell prompt like this -
p78-mfx(dgaw1078/9781)$
Now i do this -
p78-mfx(dgaw1078/9781)$ cd log4j
here the shell prompt should change like this -
p78-mfx(dgaw1078/9781)log4j$ (6 Replies)
Discussion started by: arunkumarmc
6 Replies
7. AIX
Dear all experts,
I have a script written to compress a list of files, during compressing, some of the files are having same name. When the compressing started, the same name file will be prompted with message whether to overwrite the old file. I need to enter "y" to continue.
Is there any way I... (7 Replies)
Discussion started by: kwliew999
7 Replies
8. Shell Programming and Scripting
Hi,
I am learning shell scripting for the first time. I use AT&T Korn Shell, Version AJM 93u+ 2012-08-01, compiled from source on NetBSD.
So far I have managed to set up what I think is a useful and pleasing shell prompt, which can be seen in the image attached to this post.
The prompt is... (2 Replies)
Discussion started by: gezley
2 Replies
9. Homework & Coursework Questions
Good evening, I'm trying to do my own shell and I encountered some issues while creating it. Indeed when I try such a command I have
DAUPHINE> DAUPHINE> ls -l | grep terminal > fichier
DAUPHINE> cat fichier
My shell is named DAUPHINE
Whereas I should have:
Code:
... (0 Replies)
Discussion started by: AntoineCompagni
0 Replies
LEARN ABOUT CENTOS
ldns_rr2str
ldns(3) Library Functions Manual ldns(3)
NAME
ldns_rr2str, ldns_pkt2str, ldns_rdf2str, ldns_rr_list2str, ldns_key2str
SYNOPSIS
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
char* ldns_rr2str(const ldns_rr *rr);
char* ldns_pkt2str(const ldns_pkt *pkt);
char* ldns_rdf2str(const ldns_rdf *rdf);
char* ldns_rr_list2str(const ldns_rr_list *rr_list);
char* ldns_key2str(const ldns_key *k);
DESCRIPTION
ldns_rr2str() Converts the data in the resource record to presentation format and returns that as a char *. Remember to free it.
rr: The rdata field to convert
Returns null terminated char * data, or NULL on error
ldns_pkt2str() Converts the data in the DNS packet to presentation format and returns that as a char *. Remember to free it.
pkt: The rdata field to convert
Returns null terminated char * data, or NULL on error
ldns_rdf2str() Converts the data in the rdata field to presentation format and returns that as a char *. Remember to free it.
rdf: The rdata field to convert
Returns null terminated char * data, or NULL on error
ldns_rr_list2str() Converts a list of resource records to presentation format and returns that as a char *. Remember to free it.
rr_list: the rr_list to convert to text
Returns null terminated char * data, or NULL on error
ldns_key2str() Converts a private key to the test presentation fmt and returns that as a char *. Remember to free it.
k: the key to convert to text
Returns null terminated char * data, or NULL on error
AUTHOR
The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben.
REPORTING BUGS
Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html
COPYRIGHT
Copyright (c) 2004 - 2006 NLnet Labs.
Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO
ldns_rr_print, ldns_rdf_print, ldns_pkt_print, ldns_rr_list_print, ldns_resolver_print, ldns_zone_print. And perldoc Net::DNS, RFC1034,
RFC1035, RFC4033, RFC4034 and RFC4035.
REMARKS
This manpage was automaticly generated from the ldns source code by use of Doxygen and some perl.
30 May 2006 ldns(3)