Hi,
Though I should check this myself.. but I don't have a cc compiler at this time.. :(
When I compile a c program containing say system(myshell.sh).. do the executable require that the actual script myshell.sh to be present whenever it executes? I guess it needs..
otherwise I can just... (1 Reply)
HELP!!!! I am in an on-line shell programming class and have a question. Here is the data:
Mike Harrington:(510) 548-1278:250:100:175
Christian Dobbins:(408) 538-2358:155:90:201
Susan Dalsass:(206) 654-6279:250:60:50
(There are 12 contribuors total)
This database contains names, phone... (1 Reply)
Hai Friends
I have used the function system() to execute a command. My requirement is that i have to list the files in a directory applying some wildcard paterns. For example if i want to list *.c files i go with the function
system("ls *.c");
and the output gets printed on the monitor.... (1 Reply)
Hi, guys ,,
I want to know the implementation of System() function in C Unix, and its prototype definition:
int system(const char * string) in the header file <stdlib.h> ??!
please help me ! because that is part of my project !! (0 Replies)
Hi All,
I am using solaris and nawk.
Is there any time function in nawk which is simliar to the shell `date` function ?
Can any experts show any examples? (4 Replies)
Hi,
I am using a Solaris OS here. My intention is to print the 2nd field if the first field matches "APPLE=". I am using the "getline" function here (shown below), but it doesn;t work. Can any experts give me some advice?
Input:
ORANGE= 10
APPLE= 20
MANGO= 30
GRAPES= 40
Output:
20
... (5 Replies)
Hi All,
I am in a process to send the mail automatically with an attachment to bulk users. I have used 'Mailx' and 'Unencode' commands for the same and those worked fine. Please find below the same.
X " ( cat /sastemp/body.txt; uuencode test.xls test.xls ) | mailx -s 'testing'... (1 Reply)
i'm trying to use the "before" output from the match() function as part of the results of each Regex match... but...
My input data: (from an input file)
i only show the first record in my file.. all other records are similar.
mds_ar/bin/uedw92wp.ksh:cat $AI_SQL/wkly_inqry.sql... (2 Replies)
Hi Guys ,
I want to use system function in C to do the following work.
cp <file1> <file2> and then ><file1>
e,g cp \var\log\cpm_cpmd_1.log.1 \var\log\cpm_cpmd_1.log.2 and then
>\var\log\cpm_cpmd_1.log.1
1. g_config_info.cpmm_config.cpm_log_path=\var\log\
2. ... (3 Replies)
Hi.. i am running nawk scripts on solaris system to get records of file1 not in file2 and find duplicate records in a while with the following scripts -compare
nawk 'NR==FNR{a++;next;} !a {print"line"FNR $0}' file1 file2duplicate - nawk '{a++}END{for(i in a){if(a-1)print i,a}}' file1in the middle... (12 Replies)
Discussion started by: Abhiraj Singh
12 Replies
LEARN ABOUT DEBIAN
dpkg::changelog::entry::debian
Dpkg::Changelog::Entry::Debian(3) libdpkg-perl Dpkg::Changelog::Entry::Debian(3)NAME
Dpkg::Changelog::Entry::Debian - represents a Debian changelog entry
DESCRIPTION
This object represents a Debian changelog entry. It implements the generic interface Dpkg::Changelog::Entry. Only functions specific to
this implementation are described below.
VARIABLES
$regex_header, $regex_trailer are two regular expressions that can be used to match a line and know whether it's a valid header/trailer
line.
The matched content for $regex_header is the source package name ($1), the version ($2), the target distributions ($3) and the options on
the rest of the line ($4). For $regex_trailer, it's the maintainer name ($1), its email ($2), some blanks ($3) and the timestamp ($4).
FUNCTIONS
my @items = $entry->get_change_items()
Return a list of change items. Each item contains at least one line. A change line starting with an asterisk denotes the start of a
new item. Any change line like "[ Raphael Hertzog ]" is treated like an item of its own even if it starts a set of items attributed to
this person (the following line necessarily starts a new item).
my @errors = $entry->check_header()
my @errors = $entry->check_trailer()
Return a list of errors. Each item in the list is an error message describing the problem. If the empty list is returned, no errors
have been found.
$entry->normalize()
Normalize the content. Strip whitespaces at end of lines, use a single empty line to separate each part.
UTILITY FUNCTIONS
my @closed_bugs = find_closes($changes)
Takes one string as argument and finds "Closes: #123456, #654321" statements as supported by the Debian Archive software in it. Returns all
closed bug numbers in an array.
AUTHOR
Raphael Hertzog <hertzog@debian.org>.
1.16.15 2014-06-05 Dpkg::Changelog::Entry::Debian(3)