[kepler-dev] SSH Directory List
Norbert Podhorszki
pnorbert at cs.ucdavis.edu
Sun Aug 12 10:22:15 PDT 2007
Hi Frederico,
You have to send a token to the "trigger" input port of the
SSH Directory Listing. This is the black colored port.
The other three (gray) are optional parameter ports, which means you can
deliver the required information to the actor either in a token (as you do
for "target" and "dir") or as a parameter (as you do for "mask").
On Sat, 11 Aug 2007, Frederico Tosta wrote:
> Hi, im new to Kepler and im trying to get the files from a remote site
> using SSH Directory Listing. I use a parameter for the "target" input
> and a String Constant ( "/" or "/home" ) for the "dir" input. For the
> output i linked the SSH actor to an Array Length actor and the Array
> actor to a Display actor. And im getting the error below. Can someone
> help me?
>
> ptolemy.kernel.util.IllegalActionException: Channel index 0 is out of
> range, because width is only 0.
> in .<Unnamed Object>.SSH Directory Listing.trigger
> at ptolemy.actor.IOPort.get(IOPort.java:758)
The error message here tells you that the error is with the "trigger" port
of the SSH Directory Listing actor, which tried to read a token
/IOPort.get()/ but that port was not connected at all (channel width is
0).
You may argue that the actor could that find out itself, though...
Best regards
Norbert
Norbert Podhorszki
------------------------------------
University of California, Davis
Department of Computer Science
1 Shields Ave, 2236 Kemper Hall
Davis, CA 95616
(530) 752-5076
pnorbert at cs.ucdavis.edu
----------------------------------
More information about the Kepler-dev
mailing list