OESF Portables Forum
Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Security and Networking => Topic started by: NickNak on September 07, 2005, 05:07:18 pm
-
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?
-
FISH requires perl doesn't it?
Si
-
The KDE help information (http://docs.kde.org/stable/en/kdebase/kioslave/fish.html) 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?
-
Looking at the source for the FISH kioslave, it seems that FISH invokes the following commands on the zaurus:
> /file/name
echo '### 001'
This bit seems to work because the file is created, FISH then pipes the data to:
( [ "`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.
-
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
-
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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=95949\"][{POST_SNAPBACK}][/a][/div]
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.
-
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