Help - Search - Members - Calendar
Full Version: Using Fish To Copy Files To My Z
OESF Forums > General Forums > General Support and Discussion > Security and Networking
NickNak
I would like to be able to use FISH to copy files to my SL-5500. I have tried running Dropbear and OpenSSH and in both cases whilst I can view/browse the directories, if I try to copy a file, the file is created but no data is written to it. I am able to use scp to copy files to the Z and I can use FISH to copy files to other PCs on my net. Has anyone had any success with this?
lardman
FISH requires perl doesn't it?

Si
NickNak
The KDE help information says that PERL is optional, all it requires is: cat, chgrp, chmod, chown, cp, dd, env, expr, grep, ls, mkdir, mv, rm, rmdir, sed, wc and /bin/sh should be Bourne-compatible. My Zaurus seems to meet these requirements, but could the busybox versions of these commands be inadequate in some way? Is there a way to see exactly which commands are invoked when copying a file to the Z using FISH?
NickNak
Looking at the source for the FISH kioslave, it seems that FISH invokes the following commands on the zaurus:

CODE
> /file/name
echo '### 001'


This bit seems to work because the file is created, FISH then pipes the data to:

CODE
( [ "`expr %1 / 4096`" -gt 0 ] && dd bs=4096 count=`expr %1 / 4096` 2>/dev/null; [ "`expr %1 % 4096`" -gt 0 ] && dd bs=`expr %1 % 4096` count=1 2>/dev/null; ) | ( cat > /file/name || echo Error $?; cat > /dev/null )


where %1 is replaced by the size of the file in bytes. Whilst this looks horribly complicated the standard expr, dd, cat and echo commands on the Zaurus do seem to execute it OK, I tested it by feeding stdin from local file, so now I'm thinking the problem must lie somewhere in the data feed from the PC to the Zaurus.

I may give up at this point unless anyone has any other ideas.
lardman
Sorry, I've been away.

I would be interested in seeing this work though.

I'll have a think about it and see if I can get it working (remind me though otherwise I'll probably forget - lots of work atm).

Is it possible to use the fish protocol from the command line as my Linux box is headless?


Si
NickNak
QUOTE(lardman @ Sep 15 2005, 09:36 PM)
Sorry, I've been away.

I would be interested in seeing this work though.

I'll have a think about it and see if I can get it working (remind me though otherwise I'll probably forget - lots of work atm).

Is it possible to use the fish protocol from the command line as my Linux box is headless?


Si
*


I don't know of a way to invoke the fish protocol from the command line, I believe it is implemented only as a KDE kioslave.
lardman
Oh well, something to look at in the future then, once I don't have to fire up WinXP every evening to write my thesis.


Si
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.