11-18-2009
Project name helped out a lot
Thanks for the replies!
The project name led me to the design document for Project Nemo on the OpenSolaris website, which gave me a wordier explanation of what jlliagre had already said. Looks like I've got my answer.
Now I just have to figure out what to do with it.
10 More Discussions You Might Find Interesting
1. Programming
I am learning output the data to a file using "ofstream". I need to read data from a file and output the result to the other file in 2 different ways. To do that I have to provoke two functions, and they have to output the result to the same text file. My problem is: they are correct on the screen... (2 Replies)
Discussion started by: HOUSCOUS
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am looking for a cpu usage data (%usr, %iowait, %idle, %kernel) using kstat. The output of kstat is below. How do I interpret those numeric values? In other words, how do I calculate the percentage value using the values below?
Thanks a lot!
Ozvena
module: cpu_stat ... (4 Replies)
Discussion started by: ozvena
4 Replies
3. UNIX for Dummies Questions & Answers
Hello all ,
This is the output of my prtdiag command ...The speed of each of the CPUs is listed below (1281 MHz ) ..That's fine ..I'm confused about the (System clock frequency: 183 MHZ ) ..What is the difference between System Clock freq and CPU freq ...THanks..
System Configuration: Sun... (5 Replies)
Discussion started by: luft
5 Replies
4. Solaris
Hi all,
I am working on the symbEL to get some specific value from the kernel recently. But I am not sure whether kvm and kstat have such specific value. i checked the examples included with the RICHPse but didn't get the answer. also the "kstat" seems not have any description.
Is there a... (2 Replies)
Discussion started by: sleepy_11
2 Replies
5. UNIX for Dummies Questions & Answers
I need to ask a question on how to format the output in a csv format. Right now i am running a shell script which executes a command and the following output is append through a unix script in a .csv file.
So the output of xyz.csv is as follow :-
1. Number = 25 Amount $84,132.22
2.... (1 Reply)
Discussion started by: chris1234
1 Replies
6. Solaris
We used kstat on netra240/440 to check if the link is full duplex. So we do something like:
bash-3.00# kstat -pc net bge:1::/'link_duplex'/ | cut -f2
2
The output 2 indicates the link is full duplex. This kind of check worked all right for Netra 240/440 systems.
However, the nxge... (2 Replies)
Discussion started by: illcar
2 Replies
7. Solaris
I have a server on Solaris 8 who had a sudden reboot once and now the messages log is filled with these errors:
Mar 23 02:14:42 srt-hlr-b unix: NOTICE: kstat_create('unix', 0, 'icmp_minor_1'): cannot create kstat before kstat_init()
Mar 23 02:14:42 srt-hlr-b unix: NOTICE: kstat_create('vmem',... (10 Replies)
Discussion started by: StarSol
10 Replies
8. Shell Programming and Scripting
I am running a shell script which executes a bteq script and the output of the BTEQ script is dumped in the standard output file. The output of the bteq execution is a table with 30 columns and the width of the output would be about 800 characters for each record.
My current output only shows 3... (3 Replies)
Discussion started by: Mihirjani
3 Replies
9. Shell Programming and Scripting
Hi everyone--
I'm new to these forums and shell scripting, and I'm trying to write a script that checks if a particular ip is pingable
My idea was to check if the output of the command ping <some ip> -c 1 -w 1 had the string: "1 packet transmitted, 1 received"How would I go about doing this?... (2 Replies)
Discussion started by: Prodiga1
2 Replies
10. Shell Programming and Scripting
Hi there. I am fairly new to scripting in BASH so please forgive my clumsy syntax and analogy as I try to explain what I am trying to accomplish.
I have a list of mundane functions that I currently call from a script file. What I wish to do is to accurately record into a log file the times that... (17 Replies)
Discussion started by: Tenuous
17 Replies
LEARN ABOUT DEBIAN
padre::current
Padre::Current(3pm) User Contributed Perl Documentation Padre::Current(3pm)
NAME
Padre::Current - A context object, for centralising the concept of what is "current"
DESCRIPTION
The "Padre::Current" detectes and returns whatever is current. Use it whenever you need to do something with anything which might get a
focus or be selectable otherwise
All methods could be called as functions, methods or class methods.
CLASS METHODS
"config"
my $config = Padre::Current->config;
Returns a Padre::Config object for the current document.
Padre has three types of configuration: User-specific, host-specific and project-specific, this method returnsa config object which
includes the current values - ne need to for you to care about which config is active and which has priority.
"document"
my $document = Padre::Current->document;
Returns a Padre::Document object for the current document.
"editor"
my $editor = Padre::Current->editor;
Returns a Padre::Editor object for the current editor (containing the current document).
"filename"
my $filename = Padre::Current->filename;
Returns the filename of the current document.
"ide"
my $ide = Padre::Current->ide;
Returns a Padre::Wx object of the current ide.
"main"
my $main = Padre::Current->main;
Returns a Padre::Wx::Main object of the current ide.
"notebook"
my $main = Padre::Current->notebook;
Returns a Padre::Wx::Notebook object of the current notebook.
"project"
my $main = Padre::Current->project;
Returns a Padre::Project object of the current project.
"text"
my $main = Padre::Current->text;
Returns the current selection (selected text in the current document).
"title"
my $main = Padre::Current->title;
Returns the title of the current editor window.
NAME
Padre::Current - convenient access to current objects within Padre
SYNOPSIS
my $main = Padre::Current->main;
# ...
DESCRIPTION
Padre uses lots of objects from different classes. And one needs to have access to the current object of this sort or this other to do
whatever is need at the time.
Instead of poking directly with the various classes to find the object you need, "Padre::Current" provides a bunch of handy methods to
retrieve whatever current object you need.
METHODS
new
# Vanilla constructor
Padre::Current->new;
# Seed the object with some context
Padre::Current->new( document => $document );
The "new" constructor creates a new context object, it optionally takes one or more named parameters which should be any context the caller
is aware of before he calls the constructor.
Providing this seed context allows the context object to derive parts of the current context from other parts, without the need to fall
back to the last-resort "Padre->ide" singleton-fetching method.
Many objects in Padre that are considered to be part of them context will have a "current" method which automatically creates the context
object with it as a seed.
Returns a new Padre::Current object.
"ide"
Return the Padre singleton for the IDE instance.
"config"
Returns the current Padre::Config configuration object for the IDE.
"main"
Returns the Padre::Wx::Main object for the main window.
"notebook"
Returns the Padre::Wx::Notebook object for the main window.
"document"
Returns the active Padre::Document document object.
"editor"
Returns the Padre::Editor editor object for the active document.
"filename"
Returns the file name of the active document, if it has one.
"title"
Return the title of current editor window.
"project"
Return the "Padre::Project" project object for the active document.
"text"
Returns the selected text, or a null string if nothing is selected.
COPYRIGHT & LICENSE
Copyright 2008-2012 The Padre development team as listed in Padre.pm.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.14.2 2012-06-27 Padre::Current(3pm)