9 More Discussions You Might Find Interesting
1. HP-UX
I require Hpux 11iv3 administration document if anyone could assist with the same it would be a great help. The Hp site does not have any consolidated document that could be referred to. I require something in line that could assist with network configuration and more. I require the same for Build... (3 Replies)
Discussion started by: kpatel786
3 Replies
2. Shell Programming and Scripting
Hi ,
My chunk of code is as follows:
create_db(){
isql -Usa -Paaa123 -S$DB_SERVER <<- BOF
sp_addlogin $Conf, aaa123
go
sp_addlogin mb, aaa123
go
create database $Conf on $DATA_DEVICE=800 log on $LOG_DEVICE=200
go
online database $Conf
BOF
isql -U$2 -Paaa123 -S$DB_SERVER -D$2... (5 Replies)
Discussion started by: sankasu
5 Replies
3. HP-UX
I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email.
original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies
4. Shell Programming and Scripting
Can we use a here document inside a here document?
Something like this
ssh user@remotehost << REMOTE
sudo vserver vsernamename enter << VSERVER
perform actions on vserver.
VSERVER
REMOTE (6 Replies)
Discussion started by: mnanavati
6 Replies
5. Programming
sorry if i repost this...
hi.. i want to ask how to open pdf files using C in Linux
in Windows, i just use this code:
ShellExecute(GetDesktopWindow(), "open", "D:\\Folder\\File.pdf", NULL, NULL, SW_SHOWNORMAL);
thanks for advance... (3 Replies)
Discussion started by: sunardo
3 Replies
6. Shell Programming and Scripting
$ cat test
a b c d e
f g h i j
k l m n
FILE *p;
p = fopen("a.text","r")
int a;
while ( (a = fgetc(p)) != EOF ) {
printf ("current character is %c \n",a);
}
the code above only prints the first line of the file
a b c d e
i don't know why it doesn't go through the whole... (1 Reply)
Discussion started by: bonosungho
1 Replies
7. Shell Programming and Scripting
I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I'm really new to Unix scripts and commands but i think i'm eventually getting the hang of some of it.
I have a task which is to create some kind of script which compares the file names in a directory, with the associated file name in a .txt file. We send out some data and Unix has a... (1 Reply)
Discussion started by: gman
1 Replies
9. Programming
For a job I have to do, I have to design a .tga file reader, however I have had no prior experience in this area, so I was wondering what would be the best language to use to develop my .tga reader ?
many thanks (1 Reply)
Discussion started by: JamesGoh
1 Replies
MAGE::XML::Reader(3pm) User Contributed Perl Documentation MAGE::XML::Reader(3pm)
NAME
Bio::MAGE::XML::Reader - a module for exporting MAGE-ML
SYNOPSIS
use Bio::MAGE::XML::Reader;
my $reader = Bio::MAGE::XML::Reader->new(handler=>$handler,
sax1=>$sax1,
verbose=>$verbose,
log_file=>*STDERR,
);
# set the sax1 attribute
$reader->sax1($bool);
# get the current value
$value = $reader->sax1();
# set the content/document handler - this method is provided for completeness
# the value should be set in the call to the constructor to be effective
$reader->handler($HANDLER);
# get the current handler
$handler = $reader->handler();
# set the attribute
$reader->verbose($integer);
# get the current value
$value = $reader->verbose();
# set the attribute
$reader->log_file($filename);
# get the current value
$value = $reader->log_file();
# whether to read data cubes externally (default == FALSE)
$writer->external_data($bool);
my $fh = *STDOUT;
my $mage = $reader->read($file_name);
DESCRIPTION
Methods for transforming information from a MAGE-OM objects into MAGE-ML.
ATTRIBUTE METHODS
These methods have a polymorphic setter/getter method that sets an attribute which affects the parsing of MAGE-ML. If given a value, the
method will save the value to the attribute, if invoked with no argument it will return the current value of the attribute.
These attributes can all be set in the call to the constructor using the named parameter style.
sax1
This attribute determines whether a SAX1 parser and DocumentHandler or a SAX2XMLReader and a ContentHandler will be used for parsing.
The default is to use a SAX2 parser.
handler
If an application needs a custom handler it can set this attribute in the call to the constructor. It is advised that the object use
inherit either from Bio::MAGE::XML::Handler::ContentHandler (if using SAX2) or Bio::MAGE::DocumentHandler if using SAX1. In particular,
whatever class is used, it needs to implement the following methods:
o verbose
called with the integer parameter that specifies the desired level of output
o log_file
called with the file handle to which ouput should be sent
o init
called during the constructor for any needed work
parser
Title : parser
Usage : $obj->parser($newval)
Function:
Example :
Returns : value of parser (a scalar)
Args : on set, new value (a scalar or undef, optional)
verbose
This attribute determines the desired level of output during the parse. The default is no output. A positive value increases the amount
of information.
log_file
This attribute specifies a file handle to which parse output will be directed. It is only needed if verbose is positive.
external_data($bool)
If defined, this will cause all BioAssayData objects to read themselves out using the DataExternal format.
Default Value: false
resolve_identifiers
This attribute specifies whether the reader should attempt to track unhandled identifiers in the document, and then resolve them when
parsing is over. This can be a huge performance hit if you know that all identifiers wil not resolve.
Default Value: false
INSTANCE METHODS
$self->read($file_name)
This method will open the MAGE-ML file specified by $file_name and if the "handler" attribute is not set, it will create either a SAX2
parser or a SAX1 parser (depending on the value of the C <sax1> attribute) and parse the file.
"read()" can read from STDIN by specifying '-' as the filename. This enables you to handle compressed XML files:
gzip -dc file.xml.gz | read.pl [options]
POD ERRORS
Hey! The above document had some coding errors, which are explained below:
Around line 172:
You forgot a '=back' before '=head2'
Around line 190:
'=item' outside of any '=over'
perl v5.10.1 2006-08-23 MAGE::XML::Reader(3pm)