Page 2 of 2

Posted: Mon 09 Jul 2007, 19:45
by sunburnt
I'm not sure what part you're having trouble with, post just the erroring part.
If you're not sure, put "echo ($Value)" all through it to see the bad value.

Rather than: "find / -name '*.?fs' -fprint /tmp/found.vdisk", which searches
the entire files system which can take lots of time (I have 5 HD partitions).
Search only the most likely areas... The "/" of partitions, "/Vdisk", etc.

Posted: Mon 09 Jul 2007, 20:44
by willhunt
I think the problem is in here somewhere as I get no
list of files :) and it's the part I don't understand lol

Code: Select all

export Vdisk_GUI='
<wtitle> Virtual Disk</wtitle>
<vbox>
<notebook labels="Manage Vdisks|? Vdisks">
<hbox>
 <frame  All Vdisks found >
 <vbox>
  <hbox>
<table>
<variable>VDISKS</variable>
<input file>/tmp/found.vdisk</input>
</table>
<vbox>

Posted: Mon 09 Jul 2007, 21:46
by sunburnt
There's no problem with the gtk file, is the file: /tmp/found.vdisk there?
And does it have anything in it? Probably there's no file or the file's empty.
That'd mean the find command isn't putting anything into the file.
As I said the find command should be changed anyway.

Try putting this in place of the find command:

Code: Select all

# find .........
echo 'TEST item...' > /tmp/found.vdisk
When run the echoed string should show in the ListBox.

Posted: Tue 10 Jul 2007, 00:03
by willhunt
I had to run Vdisk setup to create the found.vdisk
file but it's there really I tried the echo statment still no joy
contents of found.vdisk follow
/initrd/mnt/dev_save/pup_save.2fs
/initrd/mnt/dev_save/pup_save-1.2fs
/initrd/mnt/dev_save/pup_save_muppy.3fs
/initrd/mnt/dev_save/mupp_212.sfs
/initrd/mnt/dev_save/pup_212.sfs
/initrd/mnt/dev_save/zdrv_212.sfs
/initrd/mnt/dev_save/devx_217.sfs
/initrd/mnt/dev_save/devx_216.sfs
/initrd/mnt/dev_save/pup_216.sfs
/initrd/mnt/dev_save/zdrv_216.sfs
/initrd/mnt/dev_save/Daviz_215.sfs

Posted: Wed 11 Jul 2007, 21:07
by sunburnt
Sorry... I haven't gotten any email notices of posts, this is the third I've found.

I didn't check the code, but GTKdialog is oddly picky.
Try this in place of the current piece of code:

Code: Select all

  <table>
  <variable>VDISKS</variable>
  <input>cat /tmp/found.vdisk</input>
  </table>
Notice the <input> is changed to a "cat" command.
I assume the file /tmp/found.vdisk exists in the /tmp path.

Being as we seem to be the only folks talking anymore... Just PM me.