say i have these many file in a directory named exam.
1)/exam/newfolder/link.txt.
2)/exam/newfolder1/
and i create a tar say exam.tar
well the problem is,
when i read the tar file i dont find any metadata about the directories,as you cannot create a tar containig empty directories.
on the... (2 Replies)
Hello, I have a shell script I wrote in /bin/sh to backup my web sever. I am now on a host (someone reselling rackspace server hosting to me) and when setting up cron, it actually has a dropdown list of "command languages" that you have to choose from.
my options are:
ruby
php
perl... (0 Replies)
Can someone tell me how to do this?
Just a thought that entered my mind when learning about structs.
First thought was:
struct one
{
struct two;
}
struct two
{
three;
}
one->two->three
would this be how you would access "three"? (1 Reply)
Hello,
I found some code on line.
Is a python function that bring up an Internet interface, here the code:
# Get existing device flags
ifreq = struct.pack('16sh', 'wlan0', 0)
flags = struct.unpack('16sh', fcntl.ioctl(sockfd, SIOCGIFFLAGS, ifreq))
I'm starting... (1 Reply)
Hi guys.
I have a header file including a structure like this:
typedef struct
{
int index = -1;
stack_node *head;
} stack;
But when compiling with cc it shows error at the assignment line (int index = -1):
error: expected ‘:', ‘,', ‘;', ‘}' or ‘__attribute__' before ‘=' token... (1 Reply)
Hi,
I have received an application that stores some properties in a file. The existing struct looks like this:
struct TData
{
UINT uSizeIncludingStrings;
// copy of Telnet data struct
UINT uSize;
// basic properties:
TCHAR szHost; //defined in Sshconfig
UINT iPortNr;
TCHAR... (2 Replies)
hi everybody,
I need some help with some programming.
I need to write a file that can search in a text file and read the whole line into a struct.
the struct =
struct Transistor
{
char chType;
char chFabrikant;
float fPrijs;
enum Transistor_Behuizing { empty,TO18, TO39,... (8 Replies)
Here i am having ".tmideg0"hidden file .
I have made programm but it doesnot work
#!/usr/bin/perl
$runDir = $ENV{"REGR_RUN_DIR"};
@files = (<*.tmideg0> <*.tmideg1>);
foreach $FILE (@files)
{
open (IN, $FILE) || die "Couldn't open $FILE for reading";
open (OUT,... (2 Replies)
Hello
I am facing a very unique problem and not able to understand why. I have written a function which will check header of the file. If header is present good else it will write the header on top
def writeHeaderOutputCSV(fileName):
# See if the file exist already
try:
... (0 Replies)
I've been struggling with this one for quite a while and cannot seem to find a solution for this find/replace scenario. Perhaps I'm getting rusty.
I have a file that contains a number of metrics (exactly 3 fields per line) from a few appliances that are collected in parallel. To identify the... (3 Replies)
Discussion started by: verdepollo
3 Replies
LEARN ABOUT DEBIAN
pod::index::extract
Pod::Index::Extract(3pm) User Contributed Perl Documentation Pod::Index::Extract(3pm)NAME
Pod::Index::Extract - Extracts a "pod scope"
SYNOPSIS
use Pod::Index::Extract;
my $parser = Pod::Index::Extract->new;
# [...] get $fh_in to the desired position
$parser->parse_from_filehandle($fh_in, $fh_out);
DESCRIPTION
This module is a subclass of Pod::Parser. It outputs POD without any transformation; however, it only outputs the POD that is "in scope" as
defined in Pod::Index.
To use this module, you first need to position a filehandle at the beginning of the desired scope, and then call "parse_from_filehandle"
with that filehandle for input. It will just print the POD until it reaches the end of the scope, after which it will jump to the end of
the file.
If the scope starts with an "=item", it will wrap it with an "=over" and a "=back", so it can be used as valid POD in isolation.
VERSION
0.14
SEE ALSO
Pod::Index, Pod::Index::Entry, Pod::Parser
AUTHOR
Ivan Tubert-Brohman <itub@cpan.org>
COPYRIGHT
Copyright (c) 2005 Ivan Tubert-Brohman. All rights reserved. This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
perl v5.10.0 2005-10-16 Pod::Index::Extract(3pm)