Hello all,
1) I want to have a GUI application that will call Unix shell scripts,
2) that GUI application should be able to reside on windows ( if possible) and then call Unix shell script either directly or through a server residing on unix.
That is for example.
If a is windows gui (... (1 Reply)
I was chatting with my teacher on how this could be a great tool for admins who are making the switch from GUI to CLI administration. I'm wondering, does this kind of tool exist? (4 Replies)
Dear all,
I am a newbie in solaris and I need your advice.
I have a Solaris version 5.9 installed on Sunfire V240.
I am able to ssh the machine from putty remotely.
My problem is that I cannot see the display from KVM switch I have connected to it. I need also to be able to see the GUI... (2 Replies)
Hi All,
Am working in a major IT company, due to security issues, being a fresher am not allowed to install or asking for a specific business reason to install it in my system.
The thing is i want to learn Linux, due to the same security issues we need Admin pass to install certain... (6 Replies)
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Hi. I'm a Solaris newbie.
I'm using Solaris SunOS Version 11.4.0.15.0 through Oracle VM VirtualBox Manager on Windows.
When I start the VM, I get to a command line I can login to.
I've tried using:
/usr/dt/bin/dtconfig -e
However, I receive error "No such file or directory".
The... (3 Replies)
Discussion started by: SRD
3 Replies
LEARN ABOUT PHP
seekableiterator
SEEKABLEITERATOR(3) 1 SEEKABLEITERATOR(3)The SeekableIterator interfaceINTRODUCTION
The Seekable iterator.
INTERFACE SYNOPSIS
SeekableIterator
SeekableIteratorextends
Iterator
Methods
o abstractpublic void SeekableIterator::seek (int $position)
Inherited methods
o abstractpublic mixed Iterator::current (void )
o abstractpublic scalar Iterator::key (void )
o abstractpublic void Iterator::next (void )
o abstractpublic void Iterator::rewind (void )
o abstractpublic boolean Iterator::valid (void )
Example #1
Basic usage
This example demonstrates creating a custom SeekableIterator, seeking to a position and handling an invalid position.
<?php
class MySeekableIterator implements SeekableIterator {
private $position;
private $array = array(
"first element",
"second element",
"third element",
"fourth element"
);
/* Method required for SeekableIterator interface */
public function seek($position) {
if (!isset($this->array[$position])) {
throw new OutOfBoundsException("invalid seek position ($position)");
}
$this->position = $position;
}
/* Methods required for Iterator interface */
public function rewind() {
$this->position = 0;
}
public function current() {
return $this->array[$this->position];
}
public function key() {
return $this->position;
}
public function next() {
++$this->position;
}
public function valid() {
return isset($this->array[$this->position]);
}
}
try {
$it = new MySeekableIterator;
echo $it->current(), "
";
$it->seek(2);
echo $it->current(), "
";
$it->seek(1);
echo $it->current(), "
";
$it->seek(10);
} catch (OutOfBoundsException $e) {
echo $e->getMessage();
}
?>
The above example will output something similar to:
first element
third element
second element
invalid seek position(10)PHP Documentation Group SEEKABLEITERATOR(3)