Author Topic: Using Fish To Copy Files To My Z  (Read 4142 times)

NickNak

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.basilisk.uklinux.net
Using Fish To Copy Files To My Z
« 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?
SL-5500 OZ3.5.4 (Opie)
Gentoo

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Using Fish To Copy Files To My Z
« Reply #1 on: September 07, 2005, 06:16:15 pm »
FISH requires perl doesn't it?

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

NickNak

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.basilisk.uklinux.net
Using Fish To Copy Files To My Z
« Reply #2 on: September 12, 2005, 07:16:18 am »
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?
SL-5500 OZ3.5.4 (Opie)
Gentoo

NickNak

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.basilisk.uklinux.net
Using Fish To Copy Files To My Z
« Reply #3 on: September 13, 2005, 05:01:46 pm »
Looking at the source for the FISH kioslave, it seems that FISH invokes the following commands on the zaurus:

Code: [Select]
> /file/name
echo '### 001'

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

Code: [Select]
( [ "`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.
SL-5500 OZ3.5.4 (Opie)
Gentoo

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Using Fish To Copy Files To My Z
« Reply #4 on: September 15, 2005, 04:36:13 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

NickNak

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • http://www.basilisk.uklinux.net
Using Fish To Copy Files To My Z
« Reply #5 on: September 19, 2005, 12:04:24 pm »
Quote
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.
SL-5500 OZ3.5.4 (Opie)
Gentoo

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Using Fish To Copy Files To My Z
« Reply #6 on: September 19, 2005, 12:33:46 pm »
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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva