# An SSH shell like a stream

- Thread: https://externals.io/message/46260
- Original archive: https://news-web.php.net/php.internals/46260
- Started by Samuel ROZE on 2009-12-01T21:19:39+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #46260 — Samuel ROZE — 2009-12-01T21:19:39+00:00

URL: https://externals.io/message/46260#46260

Hi,

In the description of ssh2_shell, there's:
"Open a shell at the remote end and allocate a stream for it."

So the result of this command must be a stream. Well, it's good, I'll
use fgets, fwrite and stream_* functions ! BUT, the problem is that I
can't use a SSH2 Stream with the stream_select function...

Warning:  `stream_select()` [function.stream-select]: cannot represent a
stream of type SSH2 Channel as a select()able descriptor in XX on line
XX

Why I cannot ? Is there a workaround ?

Regards,
Samuel ROZE.

---

## #46261 — Pierre Joye — 2009-12-01T21:23:06+00:00

URL: https://externals.io/message/46260#46261 · In reply to: #46260

hi,

Please discuss PECL extension in the PECL mailing list or report a bug
via pecl.php.net/ssh2.

Cheers,


> Hi,
>
> In the description of ssh2_shell, there's:
> "Open a shell at the remote end and allocate a stream for it."
>
> So the result of this command must be a stream. Well, it's good, I'll
> use fgets, fwrite and stream_* functions ! BUT, the problem is that I
> can't use a SSH2 Stream with the stream_select function...
>
> Warning:  stream_select() [function.stream-select]: cannot represent a
> stream of type SSH2 Channel as a select()able descriptor in XX on line
> XX
>
> Why I cannot ? Is there a workaround ?
>
> Regards,
> Samuel ROZE.
>
>
> --
> 
> 
>
>



-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

---

## #46262 — Samuel ROZE — 2009-12-01T21:29:42+00:00

URL: https://externals.io/message/46260#46262 · In reply to: #46261

Done.
Sorry!

Le mardi 01 décembre 2009 à 22:23 +0100, Pierre Joye a écrit :
> hi,
> 
> Please discuss PECL extension in the PECL mailing list or report a bug
> via pecl.php.net/ssh2.
> 
> Cheers,
> 
> 
> > […]

---

## #46263 — Samuel ROZE — 2009-12-02T12:28:48+00:00

URL: https://externals.io/message/46260#46263 · In reply to: #46261

The pecl-dev@lists.php.net list appears to be broken because I doesn't
received my message which I sent yesterday...

Is there any who can tell me if I received it ? (title is "SSH2: An SSH
shell like a stream")

Regards,
Samuel.

Le mardi 01 décembre 2009 à 22:23 +0100, Pierre Joye a écrit :
> hi,
> 
> Please discuss PECL extension in the PECL mailing list or report a bug
> via pecl.php.net/ssh2.
> 
> Cheers,
> 
> 
> > […]

---

## #46264 — Samuel ROZE — 2009-12-02T12:33:00+00:00

URL: https://externals.io/message/46260#46264 · In reply to: #46263

Sorry, I had a problem with my GMail filters...

Regards,

Le mercredi 02 décembre 2009 à 13:28 +0100, Samuel ROZE a écrit :
> The pecl-dev@lists.php.net list appears to be broken because I doesn't
> received my message which I sent yesterday...
> 
> Is there any who can tell me if I received it ? (title is "SSH2: An SSH
> shell like a stream")
> 
> Regards,
> Samuel.
> 
> Le mardi 01 décembre 2009 à 22:23 +0100, Pierre Joye a écrit :
> > […]
