English Amiga Board


Go Back   English Amiga Board > Requests > request.Other

 
 
Thread Tools
Old 26 September 2014, 16:53   #1
liviux76
Registered User
 
liviux76's Avatar
 
Join Date: Jan 2014
Location: BO/Italy
Posts: 711
lxamiga - nullmodem connection between Amiga and Linux

Hello all,
about 4 years ago I found a nice program to connect my Amiga 500 to my Linux pc with a nullmodem cable.
It is called lxamiga and the developer (Mark Street) released it under GPL license.

I am not a developer (I am a sys admin) but I sorted out how to compile it on a new system (it was made for old C versions), I created an install script, I made a few adjustment and I used it happily until I changed my Linux system (I switched from Debian to CentOS in order to have at home the same system I use at work).

On my new system the program still works from command line but the GUI (actually, as declared by the author, just a perl "wrapper" made on top of the commands) gives me many errors and doesn't work properly. In practise with the GUI I am not able to use the program since the browsing of the Amiga folders doesn't work neither upload nor download and other features...

A few years ago i tried to contact the developer telling him that I appreciated his work and that I did some modification but I never received any reply so I think that I can't ask him for help, however I am pretty sure that a perl developer can fix this problem quite easily.

Is there any perl developer willing to help me? If so, please, contact me by PM and I will send you the packages.

Thanks!
liviux76 is offline  
Old 26 September 2014, 17:21   #2
chaos
Registered User
 
chaos's Avatar
 
Join Date: Mar 2013
Location: Slovenia
Posts: 138
If it's opensource, why not just publish the code here and someone can have a look at it? Maybe I could write a PyQt GUI for it, but I am a little rusty in Qt ... I can certainly try
chaos is offline  
Old 26 September 2014, 17:53   #3
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
website of lxamiga does exists. the download comes with sources.

edit: i compiled the sources in cygwin. got an error about "getopt". if you get the same, simply edit main.cxx and
add this line: #include <unistd.h>

edit2: gui mode ( option -g ) doesnt work here, no error-message.
now i understand: the gui is called from the perl script *lxagui'. need to install some things i think.

Last edited by emufan; 26 September 2014 at 18:18.
emufan is offline  
Old 26 September 2014, 18:41   #4
liviux76
Registered User
 
liviux76's Avatar
 
Join Date: Jan 2014
Location: BO/Italy
Posts: 711
Quote:
Originally Posted by emufan View Post
website of lxamiga does exists. the download comes with sources.

edit: i compiled the sources in cygwin. got an error about "getopt". if you get the same, simply edit main.cxx and
add this line: #include <unistd.h>

edit2: gui mode ( option -g ) doesnt work here, no error-message.
now i understand: the gui is called from the perl script *lxagui'. need to install some things i think.
Exactly, in order to compile succesfully you need some dependencies and you also have to modify a little the source code.
Since the website is still open I can upload on The Zone! my "updated" version.
It has an "installer" (just a script that compile the source, create the installation folder, the shortcut and so on).
liviux76 is offline  
Old 26 September 2014, 18:45   #5
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
i tried to install the perl dependecies, using cpan on my cygwin system, but this doesnt work
(Glib install failed some install-tests ). so I cannot test the gui :/
i guess i have to install a linux system sooner or later
since it's good to learn from eachother, please upload your updated version
emufan is offline  
Old 26 September 2014, 18:51   #6
liviux76
Registered User
 
liviux76's Avatar
 
Join Date: Jan 2014
Location: BO/Italy
Posts: 711
Quote:
Originally Posted by emufan View Post
i tried to install the perl dependecies, using cpan on my cygwin system, but this doesnt work
(Glib install failed some install-tests ). so I cannot test the gui :/
i guess i have to install a linux system sooner or later
since it's good to learn from eachother, please upload your updated version
Just updated!

Please, keep in mind that i am not a developer and that I wrote the readme files just for my personal use... I did almost all the modifications 3 or 4 years ago and i found the perl issue just a few weeks ago when I tried to install on CentOS (i386)

I hope you or someone else can help improving this program, as I said the developer never replied to my emails.
liviux76 is offline  
Old 26 September 2014, 19:07   #7
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
thanks for the upload
btw. does the CentOS repository got some older perl version? if so, try to install / add an older version, maybe this is the easiest solution. not future-proof, but for the moment.
when i get a running linux system, i will look into it for sure.
chaos' offer to write a python gui sounds promissing
emufan is offline  
Old 26 September 2014, 19:39   #8
liviux76
Registered User
 
liviux76's Avatar
 
Join Date: Jan 2014
Location: BO/Italy
Posts: 711
Quote:
Originally Posted by emufan View Post
thanks for the upload
btw. does the CentOS repository got some older perl version? if so, try to install / add an older version, maybe this is the easiest solution. not future-proof, but for the moment.
when i get a running linux system, i will look into it for sure.
chaos' offer to write a python gui sounds promissing
Actually my CentOS installation is very "customised" since I am using many Fedora packages and building/installing many programs by myself...

As I said I work on Linux systems this is why I installed CentOS but at home I play games so I had to update many libraries and applications in order to have Steam and other programs working...

By the way, my Perl version is:

$ perl -version
This is perl, v5.10.1 (*) built for i386-linux-thread-multi

I forgot to say that on Amiga you have to use AmigaExplorer. The working (for me) settings are in a readme file.

I can't wait of hearing from people testing and improving this program!
liviux76 is offline  
Old 17 October 2014, 21:43   #9
liviux76
Registered User
 
liviux76's Avatar
 
Join Date: Jan 2014
Location: BO/Italy
Posts: 711
Hello guys!
Any news about this topic?

I tried again today and I confirm that the program works from terminal:

[livio@optiplex-380 lxamiga]$ ./lxamiga -c /dev/ttyS0 -x -b 38400 -s 4096 dir
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Received: 500/500 Bytes (100.00%)
Number of entries: 6

:R:Kick.rom 524288 (rom) 15/07/93 00:00:00 AMIGA ROM Operating System ...
RAM:Ram Disk 133919704 (vol) 06/07/94 12:50:00
DH0:System 367976448 (vol) 06/07/94 12:50:00
:DH0:System.hdf 367976448 (hdf) 06/07/94 12:50:00 SEC:63 SUR:16 RES:2 PRE:0 S...
DH1:Data 3628154880 (vol) 06/07/94 12:51:00
:DH1:Data.hdf 3628154880 (hdf) 06/07/94 12:51:00 SEC:63 SUR:16 RES:2 PRE:0 S...


Unfortunatly even if the GUI starts correctly it is not usable since when I click on DIR I receive what you can say in the picture:



The error on terminal is the following:

Use of uninitialized value $f_name in pattern match (m//) at /home/livio/bin/lxamiga/lxagui line 305.
Use of uninitialized value $f_name in pattern match (m//) at /home/livio/bin/lxamiga/lxagui line 305.
Use of uninitialized value $f_name in pattern match (m//) at /home/livio/bin/lxamiga/lxagui line 305.
Use of uninitialized value $f_name in pattern match (m//) at /home/livio/bin/lxamiga/lxagui line 305.
Use of uninitialized value $f_name in pattern match (m//) at /home/livio/bin/lxamiga/lxagui line 305.
Use of uninitialized value $f_name in pattern match (m//) at /home/livio/bin/lxamiga/lxagui line 305.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.

Is there anything I can do in order to have the GUI functional?
Let me know if you want me to do some tests!
Any help would be much appreciated, thanks!
liviux76 is offline  
Old 18 October 2014, 01:17   #10
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
as stated in another posting, still no linux installed :/
_maybe_ some sort of perl validator may help:
http://stackoverflow.com/questions/4...perl-validator
maybe its just that simple and the described method can shed some light on the problem.

the last posting talks about perldebug.

edit: line 323/324 seems to do a sort on those arrays(?!) (at)files (at)dir,
maybe just set a comment statement (#) infront of the lines and see what happens

edit2: $f_name - no clue here, but look at line 292. this might be some sort of fallback for $f_type.
i would try to insert line 293 with the following:
$f_name = "" unless defined $f_name;

or try:

$f_name = "debug" unless defined $f_name;

edit3: line 305 and 306 belongs to one statement, the && is logical AND - so the error message about f_name in 305 makes sense.
for debuging try again to put a (#) infront of line 305 and 306.

edit4: line 30 could help too: my $debug = 0;
change this to "1" - script will output values for those variables $f_name, etc. so you could check if printed values are reasonable.

Last edited by emufan; 18 October 2014 at 02:06.
emufan is offline  
Old 18 October 2014, 15:48   #11
haps
Rumpig
 
haps's Avatar
 
Join Date: Aug 2006
Location: The bottom of the bottle
Age: 92
Posts: 243
Only had a quick look at the code, don't have a setup to test at the moment.

Quote:
Use of uninitialized value $f_name in pattern match (m//) at /home/livio/bin/lxamiga/lxagui line 305.
What output do you get from the print statements in that foreach block if you set $debug = 1

Quote:
Use of uninitialized value in string comparison (cmp) at /home/livio/bin/lxamiga/lxagui line 324.
Nothing is being pushed into @files on line 320 because of the previous error.

$f_name is not a fallback for $f_type. It is obviously the var that is meant to hold the filename. You can see on line 289 that each var is meant to be populated from $line. This makes me think that $line contains garbage, so the debug output would be a big help.
haps is offline  
Old 18 October 2014, 16:15   #12
liviux76
Registered User
 
liviux76's Avatar
 
Join Date: Jan 2014
Location: BO/Italy
Posts: 711
ok, thanks for your help.

A few months ago, the last time that I tried to sort this out, I remember that I commented a few lines out but I still didn't have the folder list...

I will try to do what you said and I'll let you know how it goes.
liviux76 is offline  
Old 18 October 2014, 20:04   #13
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
@haps: thanks for looking into it.
line 292 was shown as an example, on how to deal with the f_name value, if it gets no valid data. so my suggestion to insert a line 293 as shown above

@liviux76: try my "edit4" first.
save the console output, quit the gui and then start the cli version - also save the console output. add the gui/cli outputs here, so we can analyze together
i think harps is correct - one of the perl reg-exp malforms the input from the cli-version.
emufan is offline  
Old 18 October 2014, 22:01   #14
liviux76
Registered User
 
liviux76's Avatar
 
Join Date: Jan 2014
Location: BO/Italy
Posts: 711
Quote:
Originally Posted by emufan View Post

@liviux76: try my "edit4" first.
save the console output, quit the gui and then start the cli version - also save the console output. add the gui/cli outputs here, so we can analyze together
i think harps is correct - one of the perl reg-exp malforms the input from the cli-version.
Hello mate,
thanks for your help.
So, I tried your hint and I modified the debug value. Here the output of the CLI and then the GUI:

Code:
[livio@optiplex-380 lxamiga]$ ./lxamiga -c /dev/ttyS0 -x -b 38400 -s 4096 dir
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Received: 500/500 Bytes (100.00%) 
Number of entries: 6

  :R:Kick.rom                      524288 (rom) 15/07/93 00:00:00 AMIGA ROM Operating System ...
  RAM:Ram Disk                   133919704 (vol) 06/07/94 12:50:00           
  DH0:System                     367976448 (vol) 06/07/94 12:50:00           
  :DH0:System.hdf                367976448 (hdf) 06/07/94 12:50:00 SEC:63 SUR:16 RES:2 PRE:0 S...
  DH1:Data                       3628154880 (vol) 06/07/94 12:51:00           
  :DH1:Data.hdf                  3628154880 (hdf) 06/07/94 12:51:00 SEC:63 SUR:16 RES:2 PRE:0 S...

[livio@optiplex-380 lxamiga]$ ./lxagui 
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Received: 500/500 Bytes (100.00%) 
Number of entries: 6

  :R:Kick.rom                      524288 (rom) 15/07/93 00:00:00 AMIGA ROM Operating System and Libraries��Copyright � 1985-1993 ��Commodore-Amiga, Inc. ��All Rights Reserved.��3.1 ROM 
  RAM:Ram Disk                   133919704 (vol) 06/07/94 12:50:00           
  DH0:System                     367976448 (vol) 06/07/94 12:50:00           
  :DH0:System.hdf                367976448 (hdf) 06/07/94 12:50:00 SEC:63 SUR:16 RES:2 PRE:0 SSZ:512 HCY:712 DOS:0x444F5303
  DH1:Data                       3628154880 (vol) 06/07/94 12:51:00           
  :DH1:Data.hdf                  3628154880 (hdf) 06/07/94 12:51:00 SEC:63 SUR:16 RES:2 PRE:0 SSZ:512 HCY:7029 DOS:0x444F5303
Line:   :R:Kick.rom                      524288 (rom) 15/07/93 00:00:00 AMIGA ROM Operating System and Libraries��Copyright � 1985-1993 ��Commodore-Amiga, Inc. ��All Rights Reserved.��3.1 ROM 
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 294.
f_name = , f_size=, f_type=, f_date=, f_text=
Use of uninitialized value $f_name in pattern match (m//) at ./lxagui line 305.
Line:   RAM:Ram Disk                   133919704 (vol) 06/07/94 12:50:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 294.
f_name = , f_size=, f_type=, f_date=, f_text=
Use of uninitialized value $f_name in pattern match (m//) at ./lxagui line 305.
Line:   DH0:System                     367976448 (vol) 06/07/94 12:50:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 294.
f_name = , f_size=, f_type=, f_date=, f_text=
Use of uninitialized value $f_name in pattern match (m//) at ./lxagui line 305.
Line:   :DH0:System.hdf                367976448 (hdf) 06/07/94 12:50:00 SEC:63 SUR:16 RES:2 PRE:0 SSZ:512 HCY:712 DOS:0x444F5303
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 294.
f_name = , f_size=, f_type=, f_date=, f_text=
Use of uninitialized value $f_name in pattern match (m//) at ./lxagui line 305.
Line:   DH1:Data                       3628154880 (vol) 06/07/94 12:51:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 294.
f_name = , f_size=, f_type=, f_date=, f_text=
Use of uninitialized value $f_name in pattern match (m//) at ./lxagui line 305.
Line:   :DH1:Data.hdf                  3628154880 (hdf) 06/07/94 12:51:00 SEC:63 SUR:16 RES:2 PRE:0 SSZ:512 HCY:7029 DOS:0x444F5303
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 294.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 294.
f_name = , f_size=, f_type=, f_date=, f_text=
Use of uninitialized value $f_name in pattern match (m//) at ./lxagui line 305.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 324.
There are weird symbols on the result of the same CLI command obtained through the GUi... is that the problem?

When you have time, please, let me know my next step, thanks!

UPDATE:
I avoided showing the weird symbols omitting the "-g" option from the $lxargs variable but the error is the same so they aren't the cause.
my $lxargs = "-c /dev/ttyS0 -x -b 38400 -s 4096";

I noticed that with debug=1 the first error is on line 294:
print "f_name = $f_name, f_size=$f_size, f_type=$f_type, ".

Last edited by liviux76; 18 October 2014 at 22:14.
liviux76 is offline  
Old 18 October 2014, 23:14   #15
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
thanks for posting the outputs, this could help to find the issue.
line 287 output looks good:
Code:
print "Line: $line\n" if $debug;
Line:   DH1:Data                       3628154880 (vol) 06/07/94 12:51:00
next debug output comes from line 294/295 - and all those variables got no values.
Code:
print "f_name = $f_name, f_size=$f_size, f_type=$f_type, ". "f_date=$f_date, f_text=$f_text\n" if $debug;
f_name = , f_size=, f_type=, f_date=, f_text=
so the troublemaker is the reg-exp in line 289/290:
Code:
my ($f_name, $f_size, $f_type, $f_date, $f_text) = ($line =~
			/\s*(.*?)\s+(\d+)\s+(?:\((\w+)\))?\s+(\d+\/\d+\/\d+\s+\d+:\d+)\s(.*)/);
now a long story, and i'm not sure if it's the solution - i hope it's not too much nonsense

as we can read Perl - Character-set-modifiers - the behaviour of the \d "command" has been a source of bugs and has been changed since couple of perl versions.
all this reads like a character encoding problem - in recent perl version it defaults to unicode encoding, in earlier version it was different or just buggy.

this "/a" or "/aa" modifier has to be used to make thses "\d" commands work in ascii-range only.

so somehow we must insert this "/a" modifier into the regexp in line 289/290 - or rewrite it completly.

there is a nice way to test such reg-exp with the perl interpreter with a single-line command from a shell - but i cannot remember exactly how - but i'm looking into it.
found examples for the single-line perl commands: perl one liners.

Last edited by emufan; 18 October 2014 at 23:21.
emufan is offline  
Old 18 October 2014, 23:23   #16
liviux76
Registered User
 
liviux76's Avatar
 
Join Date: Jan 2014
Location: BO/Italy
Posts: 711
Hello emufan!
I am here, now. I am starting my A500+ in order to do some tests...
If you are there and you have some hints just let me know... :-)
Thanks!!!

UPDATE:
I give up... for tonight!
I am very tired but i would like to do more tests tomorrow... thanks emufan!

Last edited by liviux76; 18 October 2014 at 23:53.
liviux76 is offline  
Old 19 October 2014, 00:23   #17
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
it's horror - i'm playing with this reg-exp - we need some expert in regular expressions, which would solve this in minutes - incl. a tea-break

one of my perl-one-liner looks like this:
Code:
cat lxamiga-test.txt | perl -ne 'print   /\s*(.*?)\s+(\d+)/i ;  print "\n"'
these are the first two section of the line 290 reg-exp, matching f_name and f_size.

outputs:
Code:
:R:Kick.rom524288
RAM:Ram Disk133919704
DH0:System367976448
:DH0:System.hdf367976448
DH1:Data3628154880
:DH1:Data.hdf3628154880
content of lxamiga-test.txt :
Code:
  :R:Kick.rom                      524288 (rom) 15/07/93 00:00:00 AMIGA ROM Operating System and Libraries??Copyright ? 1985-1993 ??Commodore-Amiga, Inc. ??All Rights Reserved.??3.1 ROM 
  RAM:Ram Disk                   133919704 (vol) 06/07/94 12:50:00           
  DH0:System                     367976448 (vol) 06/07/94 12:50:00           
  :DH0:System.hdf                367976448 (hdf) 06/07/94 12:50:00 SEC:63 SUR:16 RES:2 PRE:0 SSZ:512 HCY:712 DOS:0x444F5303
  DH1:Data                       3628154880 (vol) 06/07/94 12:51:00           
  :DH1:Data.hdf                  3628154880 (hdf) 06/07/94 12:51:00 SEC:63 SUR:16 RES:2 PRE:0 SSZ:512 HCY:7029 DOS:0x444F5303
so with breaking apart the reg-exp from line 290, i try to find the wrong statement.
the reg-exp in 290 consists of 5 section - so it should match/find "$f_name, $f_size, $f_type, $f_date, $f_text" (line 289).

it's going to be a nightmare

edit: section #4 ($f_date) does not get matched correct.
Code:
?\s+(\d+\/\d+\/\d+\s+\d+:\d+)
which should match this part: 06/07/94 12:50:00
s is matching whitespace, and d matching digits, separated by "/" and ":" .
time field only gots matched by 2x \d+ , so this may be an issue

here is the reg-exp without the f_date section and it outputs til the end of line.
Code:
cat lxamiga-test.txt | perl -ne 'print   /\s*(.*?)\s+(\d+)\s+(?:\((\w+)\))\s(.*)/  ;  print "\n"'
outputs:
Code:
:R:Kick.rom524288rom15/07/93 00:00:00 AMIGA ROM Operating System and Libraries??Copyright ? 1985-1993 ??Commodore-Amiga, Inc. ??All Rights Reserved.??3.1 ROM
RAM:Ram Disk133919704vol06/07/94 12:50:00
DH0:System367976448vol06/07/94 12:50:00
:DH0:System.hdf367976448hdf06/07/94 12:50:00 SEC:63 SUR:16 RES:2 PRE:0 SSZ:512 HCY:712 DOS:0x444F5303
DH1:Data3628154880vol06/07/94 12:51:00
:DH1:Data.hdf3628154880hdf06/07/94 12:51:00 SEC:63 SUR:16 RES:2 PRE:0 SSZ:512 HCY:7029 DOS:0x444F5303
maybe we can fix this.

edit2:
now the full "fixed" regexp:
Code:
 cat lxamiga-test.txt | perl -ne 'print   /\s*(.*?)\s+(\d+)\s+(?:\((\w+)\))?\s+(\d+\/\d+\/\d+\s+\d+:\d+:\d+)\s(.*)/  ;  print "\n"'
outputs the whole line:
Code:
:R:Kick.rom524288rom15/07/93 00:00:00AMIGA ROM Operating System and Libraries??Copyright ? 1985-1993 ??Commodore-Amiga, Inc. ??All Rights Reserved.??3.1 ROM
RAM:Ram Disk133919704vol06/07/94 12:50:00
DH0:System367976448vol06/07/94 12:50:00
:DH0:System.hdf367976448hdf06/07/94 12:50:00SEC:63 SUR:16 RES:2 PRE:0 SSZ:512 HCY:712 DOS:0x444F5303
DH1:Data3628154880vol06/07/94 12:51:00
:DH1:Data.hdf3628154880hdf06/07/94 12:51:00SEC:63 SUR:16 RES:2 PRE:0 SSZ:512 HCY:7029 DOS:0x444F5303
hmm, cool.

so what you can do now, replace line 290:
original:
Code:
/\s*(.*?)\s+(\d+)\s+(?:\((\w+)\))?\s+(\d+\/\d+\/\d+\s+\d+:\d+)\s(.*)/);
with this new one:
Code:
/\s*(.*?)\s+(\d+)\s+(?:\((\w+)\))?\s+(\d+\/\d+\/\d+\s+\d+:\d+:\d+)\s(.*)/);
i just inserted a 3rd "\d+" for the seconds of the time field.
something should be different - at least i hope so

edit3: i'm not yet sure, maybe the leading ":" infront of some lines could be troublesome, but this can be fixed, i think.
in any case, add the console output again.

Last edited by emufan; 19 October 2014 at 01:25.
emufan is offline  
Old 19 October 2014, 10:44   #18
liviux76
Registered User
 
liviux76's Avatar
 
Join Date: Jan 2014
Location: BO/Italy
Posts: 711
Quote:
Originally Posted by emufan View Post
(...)

so what you can do now, replace line 290:
original:
Code:
/\s*(.*?)\s+(\d+)\s+(?:\((\w+)\))?\s+(\d+\/\d+\/\d+\s+\d+:\d+)\s(.*)/);
with this new one:
Code:
/\s*(.*?)\s+(\d+)\s+(?:\((\w+)\))?\s+(\d+\/\d+\/\d+\s+\d+:\d+:\d+)\s(.*)/);
i just inserted a 3rd "\d+" for the seconds of the time field.
something should be different - at least i hope so

(...)
Hey!
We (you) made a step ahead!
Now I obtained the directory list:



Unfortunately there are still some problems.

I successfully uploaded a file to RAM: (during the transfer the GUI simply remains all grey like if it was frozen but this happened in the past too...) but once uploaded the file isn't showed (actually its name isn't showed, the fi is there):



This is the CLI output:

Code:
[livio@optiplex-380 lxamiga]$ ./lxagui 
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Received: 500/500 Bytes (100.00%) 
Number of entries: 6

  :R:Kick.rom                      524288 (rom) 15/07/93 00:00:00 AMIGA ROM Operating System ...
  RAM:Ram Disk                   133770864 (vol) 06/07/94 12:50:00           
  DH0:System                     367976448 (vol) 06/07/94 12:50:00           
  :DH0:System.hdf                367976448 (hdf) 06/07/94 12:50:00 SEC:63 SUR:16 RES:2 PRE:0 S...
  DH1:Data                       3628154880 (vol) 06/07/94 12:51:00           
  :DH1:Data.hdf                  3628154880 (hdf) 06/07/94 12:51:00 SEC:63 SUR:16 RES:2 PRE:0 S...
Line:   :R:Kick.rom                      524288 (rom) 15/07/93 00:00:00 AMIGA ROM Operating System ...
f_name = :R:Kick.rom, f_size=524288, f_type=rom, f_date=15/07/93 00:00:00, f_text=AMIGA ROM Operating System ...
Line:   RAM:Ram Disk                   133770864 (vol) 06/07/94 12:50:00           
f_name = RAM:Ram Disk, f_size=133770864, f_type=vol, f_date=06/07/94 12:50:00, f_text=          
Line:   DH0:System                     367976448 (vol) 06/07/94 12:50:00           
f_name = DH0:System, f_size=367976448, f_type=vol, f_date=06/07/94 12:50:00, f_text=          
Line:   :DH0:System.hdf                367976448 (hdf) 06/07/94 12:50:00 SEC:63 SUR:16 RES:2 PRE:0 S...
f_name = :DH0:System.hdf, f_size=367976448, f_type=hdf, f_date=06/07/94 12:50:00, f_text=SEC:63 SUR:16 RES:2 PRE:0 S...
Line:   DH1:Data                       3628154880 (vol) 06/07/94 12:51:00           
f_name = DH1:Data, f_size=3628154880, f_type=vol, f_date=06/07/94 12:51:00, f_text=          
Line:   :DH1:Data.hdf                  3628154880 (hdf) 06/07/94 12:51:00 SEC:63 SUR:16 RES:2 PRE:0 S...
f_name = :DH1:Data.hdf, f_size=3628154880, f_type=hdf, f_date=06/07/94 12:51:00, f_text=SEC:63 SUR:16 RES:2 PRE:0 S...
Callback on row: $VAR1 = [
          'RAM:Ram Disk',
          '133770864',
          'vol',
          bless( {}, 'Gtk2::Gdk::Pixbuf' ),
          '06/07/94 12:50:00',
          '          '
        ];

Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Received: 162/162 Bytes (100.00%) 
Number of entries: 4

  lxamiga                          146040 null  19/10/14 08:22:00           
  Disk.info                          1013 null  06/07/94 12:50:00           
  Clipboards                            0 (dir) 06/07/94 12:50:00           
  T                                     0 (dir) 06/07/94 12:50:00           
Line:   lxamiga                          146040 null  19/10/14 08:22:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 295.
f_name = , f_size=, f_type=, f_date=, f_text=
Use of uninitialized value $f_name in pattern match (m//) at ./lxagui line 306.
Line:   Disk.info                          1013 null  06/07/94 12:50:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 295.
f_name = , f_size=, f_type=, f_date=, f_text=
Use of uninitialized value $f_name in pattern match (m//) at ./lxagui line 306.
Line:   Clipboards                            0 (dir) 06/07/94 12:50:00           
f_name = Clipboards, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Line:   T                                     0 (dir) 06/07/94 12:50:00           
f_name = T, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Use of uninitialized value in string comparison (cmp) at ./lxagui line 325.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 325.
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Received: 162/162 Bytes (100.00%) 
Number of entries: 4

  lxamiga                          146040 null  19/10/14 08:22:00           
  Disk.info                          1013 null  06/07/94 12:50:00           
  Clipboards                            0 (dir) 06/07/94 12:50:00           
  T                                     0 (dir) 06/07/94 12:50:00           
Line:   lxamiga                          146040 null  19/10/14 08:22:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 295.
f_name = , f_size=, f_type=, f_date=, f_text=
Use of uninitialized value $f_name in pattern match (m//) at ./lxagui line 306.
Line:   Disk.info                          1013 null  06/07/94 12:50:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 295.
f_name = , f_size=, f_type=, f_date=, f_text=
Use of uninitialized value $f_name in pattern match (m//) at ./lxagui line 306.
Line:   Clipboards                            0 (dir) 06/07/94 12:50:00           
f_name = Clipboards, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Line:   T                                     0 (dir) 06/07/94 12:50:00           
f_name = T, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Use of uninitialized value in string comparison (cmp) at ./lxagui line 325.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 325.
After the upload, trying a new "DIR" command from GUI doesn't work:

Code:
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Received: 162/162 Bytes (100.00%) 
Number of entries: 4

  lxamiga                          146040 null  19/10/14 08:22:00           
  Disk.info                          1013 null  06/07/94 12:50:00           
  Clipboards                            0 (dir) 06/07/94 12:50:00           
  T                                     0 (dir) 06/07/94 12:50:00           
Line:   lxamiga                          146040 null  19/10/14 08:22:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 295.
f_name = , f_size=, f_type=, f_date=, f_text=
Use of uninitialized value $f_name in pattern match (m//) at ./lxagui line 306.
Line:   Disk.info                          1013 null  06/07/94 12:50:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 295.
f_name = , f_size=, f_type=, f_date=, f_text=
Use of uninitialized value $f_name in pattern match (m//) at ./lxagui line 306.
Line:   Clipboards                            0 (dir) 06/07/94 12:50:00           
f_name = Clipboards, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Line:   T                                     0 (dir) 06/07/94 12:50:00           
f_name = T, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Use of uninitialized value in string comparison (cmp) at ./lxagui line 325.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 325.
The "PARENT" command from GUI does nothing as well, this is the CLI output:

Code:
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Received: 162/162 Bytes (100.00%) 
Number of entries: 4

  lxamiga                          146040 null  19/10/14 08:22:00           
  Disk.info                          1013 null  06/07/94 12:50:00           
  Clipboards                            0 (dir) 06/07/94 12:50:00           
  T                                     0 (dir) 06/07/94 12:50:00           
Line:   lxamiga                          146040 null  19/10/14 08:22:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 295.
f_name = , f_size=, f_type=, f_date=, f_text=
Use of uninitialized value $f_name in pattern match (m//) at ./lxagui line 306.
Line:   Disk.info                          1013 null  06/07/94 12:50:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 295.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 295.
f_name = , f_size=, f_type=, f_date=, f_text=
Use of uninitialized value $f_name in pattern match (m//) at ./lxagui line 306.
Line:   Clipboards                            0 (dir) 06/07/94 12:50:00           
f_name = Clipboards, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Line:   T                                     0 (dir) 06/07/94 12:50:00           
f_name = T, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Use of uninitialized value in string comparison (cmp) at ./lxagui line 325.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 325.
I think that this is a good step ahead, I am sorry that I am not able to help except for executing your instructions... anyway if you have more ideas just tell me what to do! Thanks!
liviux76 is offline  
Old 19 October 2014, 15:49   #19
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
thats not so bad so far
trouble now is line 292 in combinaton with the reg-exp in 290.

if f_type is undefined, there is line 292 which makes a default to "" for f_type:
Code:
$f_type = "" unless defined $f_type;
but the reg-exp in 290 needs an enclosed value for f_type, otherwise the reg-exp wont match - section 3 of the reg-exp
Code:
/\s*(.*?)\s+(\d+)\s+(?:\((\w+)\))?\s+(\d+\/\d+\/\d+\s+\d+:\d+:\d+)\s(.*)/);
solution, we need always a f_type enclosed by "()" - so try changing line 292:
Code:
$f_type = "(null)" unless defined $f_type;
or this one, does also match and looks better than "null" in the listview
Code:
$f_type = "(file)" unless defined $f_type;
edit2: not yet sure about the trouble with "parent" function - just add again console output if the error persists.

Last edited by emufan; 19 October 2014 at 16:11.
emufan is offline  
Old 19 October 2014, 16:13   #20
liviux76
Registered User
 
liviux76's Avatar
 
Join Date: Jan 2014
Location: BO/Italy
Posts: 711
Hi emufan,
I modified the line 292 and now on "File Type" it says "(file)":



however if I try to download the file that i just uploaded I get an error:



The same when I try to go to parent directory. If I try "Make Dir" (test) it works. Here the output from the CLI:

Code:
[livio@optiplex-380 lxamiga]$ ./lxagui 
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Received: 500/500 Bytes (100.00%) 
Number of entries: 6

  :R:Kick.rom                      524288 (rom) 15/07/93 00:00:00 AMIGA ROM Operating System ...
  RAM:Ram Disk                   133919704 (vol) 06/07/94 12:50:00           
  DH0:System                     367976448 (vol) 06/07/94 12:50:00           
  :DH0:System.hdf                367976448 (hdf) 06/07/94 12:50:00 SEC:63 SUR:16 RES:2 PRE:0 S...
  DH1:Data                       3628154880 (vol) 06/07/94 12:51:00           
  :DH1:Data.hdf                  3628154880 (hdf) 06/07/94 12:51:00 SEC:63 SUR:16 RES:2 PRE:0 S...
Line:   :R:Kick.rom                      524288 (rom) 15/07/93 00:00:00 AMIGA ROM Operating System ...
f_name = :R:Kick.rom, f_size=524288, f_type=rom, f_date=15/07/93 00:00:00, f_text=AMIGA ROM Operating System ...
Line:   RAM:Ram Disk                   133919704 (vol) 06/07/94 12:50:00           
f_name = RAM:Ram Disk, f_size=133919704, f_type=vol, f_date=06/07/94 12:50:00, f_text=          
Line:   DH0:System                     367976448 (vol) 06/07/94 12:50:00           
f_name = DH0:System, f_size=367976448, f_type=vol, f_date=06/07/94 12:50:00, f_text=          
Line:   :DH0:System.hdf                367976448 (hdf) 06/07/94 12:50:00 SEC:63 SUR:16 RES:2 PRE:0 S...
f_name = :DH0:System.hdf, f_size=367976448, f_type=hdf, f_date=06/07/94 12:50:00, f_text=SEC:63 SUR:16 RES:2 PRE:0 S...
Line:   DH1:Data                       3628154880 (vol) 06/07/94 12:51:00           
f_name = DH1:Data, f_size=3628154880, f_type=vol, f_date=06/07/94 12:51:00, f_text=          
Line:   :DH1:Data.hdf                  3628154880 (hdf) 06/07/94 12:51:00 SEC:63 SUR:16 RES:2 PRE:0 S...
f_name = :DH1:Data.hdf, f_size=3628154880, f_type=hdf, f_date=06/07/94 12:51:00, f_text=SEC:63 SUR:16 RES:2 PRE:0 S...
Callback on row: $VAR1 = [
          'RAM:Ram Disk',
          '133919704',
          'vol',
          bless( {}, 'Gtk2::Gdk::Pixbuf' ),
          '06/07/94 12:50:00',
          '          '
        ];

Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Received: 122/122 Bytes (100.00%) 
Number of entries: 3

  Disk.info                          1013 null  06/07/94 12:50:00           
  Clipboards                            0 (dir) 06/07/94 12:50:00           
  T                                     0 (dir) 06/07/94 12:50:00           
Line:   Disk.info                          1013 null  06/07/94 12:50:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 296.
f_name = , f_size=, f_type=(file), f_date=, f_text=
Line:   Clipboards                            0 (dir) 06/07/94 12:50:00           
f_name = Clipboards, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Line:   T                                     0 (dir) 06/07/94 12:50:00           
f_name = T, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
OK - uploading from /home/livio/bin/lxamiga/lxamiga to RAM:Ram Disk/lxamiga
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Uploading /home/livio/bin/lxamiga/lxamiga to RAM:Ram Disk/lxamiga
Sent: 146040/146040 Bytes (100.00%) 
Successfully uploaded 146040 bytes.
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Received: 162/162 Bytes (100.00%) 
Number of entries: 4

  lxamiga                          146040 null  19/10/14 14:04:00           
  Disk.info                          1013 null  06/07/94 12:50:00           
  Clipboards                            0 (dir) 06/07/94 12:50:00           
  T                                     0 (dir) 06/07/94 12:50:00           
Line:   lxamiga                          146040 null  19/10/14 14:04:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 296.
f_name = , f_size=, f_type=(file), f_date=, f_text=
Line:   Disk.info                          1013 null  06/07/94 12:50:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 296.
f_name = , f_size=, f_type=(file), f_date=, f_text=
Line:   Clipboards                            0 (dir) 06/07/94 12:50:00           
f_name = Clipboards, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Line:   T                                     0 (dir) 06/07/94 12:50:00           
f_name = T, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Use of uninitialized value in string comparison (cmp) at ./lxagui line 326.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 326.
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Received: 162/162 Bytes (100.00%) 
Number of entries: 4

  lxamiga                          146040 null  19/10/14 14:04:00           
  Disk.info                          1013 null  06/07/94 12:50:00           
  Clipboards                            0 (dir) 06/07/94 12:50:00           
  T                                     0 (dir) 06/07/94 12:50:00           
Line:   lxamiga                          146040 null  19/10/14 14:04:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 296.
f_name = , f_size=, f_type=(file), f_date=, f_text=
Line:   Disk.info                          1013 null  06/07/94 12:50:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 296.
f_name = , f_size=, f_type=(file), f_date=, f_text=
Line:   Clipboards                            0 (dir) 06/07/94 12:50:00           
f_name = Clipboards, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Line:   T                                     0 (dir) 06/07/94 12:50:00           
f_name = T, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Use of uninitialized value in string comparison (cmp) at ./lxagui line 326.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 326.
Selected indices: 2
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Received: 162/162 Bytes (100.00%) 
Number of entries: 4

  lxamiga                          146040 null  19/10/14 14:04:00           
  Disk.info                          1013 null  06/07/94 12:50:00           
  Clipboards                            0 (dir) 06/07/94 12:50:00           
  T                                     0 (dir) 06/07/94 12:50:00           
Line:   lxamiga                          146040 null  19/10/14 14:04:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 296.
f_name = , f_size=, f_type=(file), f_date=, f_text=
Line:   Disk.info                          1013 null  06/07/94 12:50:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 296.
f_name = , f_size=, f_type=(file), f_date=, f_text=
Line:   Clipboards                            0 (dir) 06/07/94 12:50:00           
f_name = Clipboards, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Line:   T                                     0 (dir) 06/07/94 12:50:00           
f_name = T, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Use of uninitialized value in string comparison (cmp) at ./lxagui line 326.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 326.
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Received: 162/162 Bytes (100.00%) 
Number of entries: 4

  lxamiga                          146040 null  19/10/14 14:04:00           
  Disk.info                          1013 null  06/07/94 12:50:00           
  Clipboards                            0 (dir) 06/07/94 12:50:00           
  T                                     0 (dir) 06/07/94 12:50:00           
Line:   lxamiga                          146040 null  19/10/14 14:04:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 296.
f_name = , f_size=, f_type=(file), f_date=, f_text=
Line:   Disk.info                          1013 null  06/07/94 12:50:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 296.
f_name = , f_size=, f_type=(file), f_date=, f_text=
Line:   Clipboards                            0 (dir) 06/07/94 12:50:00           
f_name = Clipboards, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Line:   T                                     0 (dir) 06/07/94 12:50:00           
f_name = T, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Use of uninitialized value in string comparison (cmp) at ./lxagui line 326.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 326.
mkdir: RAM:Ram Disk, test
Use of uninitialized value in pattern match (m//) at ./lxagui line 552.
Use of uninitialized value in pattern match (m//) at ./lxagui line 552.
Next drawer iterator = 1
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Successfully created dir RAM:Ram Disk
rename "RAM:Ram Disk/Unnamed1" to "test"
rename "RAM:Ram Disk/Unnamed1.info" to "test.info"
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Successfully renamed RAM:Ram Disk/Unnamed1
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Successfully renamed RAM:Ram Disk/Unnamed1.info
Initialising Amiga connection /dev/ttyS0, 38400 Baud, 4096 Block Size.
Received: 240/240 Bytes (100.00%) 
Number of entries: 6

  test.info                           576 null  06/07/94 12:58:00           
  test                                  0 (dir) 06/07/94 12:58:00           
  lxamiga                          146040 null  19/10/14 14:04:00           
  Disk.info                          1013 null  06/07/94 12:50:00           
  Clipboards                            0 (dir) 06/07/94 12:50:00           
  T                                     0 (dir) 06/07/94 12:50:00           
Line:   test.info                           576 null  06/07/94 12:58:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 296.
f_name = , f_size=, f_type=(file), f_date=, f_text=
Line:   test                                  0 (dir) 06/07/94 12:58:00           
f_name = test, f_size=0, f_type=dir, f_date=06/07/94 12:58:00, f_text=          
Line:   lxamiga                          146040 null  19/10/14 14:04:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 296.
f_name = , f_size=, f_type=(file), f_date=, f_text=
Line:   Disk.info                          1013 null  06/07/94 12:50:00           
Use of uninitialized value $f_name in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_size in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_date in concatenation (.) or string at ./lxagui line 296.
Use of uninitialized value $f_text in concatenation (.) or string at ./lxagui line 296.
f_name = , f_size=, f_type=(file), f_date=, f_text=
Line:   Clipboards                            0 (dir) 06/07/94 12:50:00           
f_name = Clipboards, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Line:   T                                     0 (dir) 06/07/94 12:50:00           
f_name = T, f_size=0, f_type=dir, f_date=06/07/94 12:50:00, f_text=          
Use of uninitialized value in string comparison (cmp) at ./lxagui line 326.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 326.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 326.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 326.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 326.
Use of uninitialized value in string comparison (cmp) at ./lxagui line 326.
Thanks for your help!

UPDATE:
It seems that the script is not able to identify the type of file. It now shows (file) for "disk.info", "test.info" and "lxamiga" (the file that I uploaded to RAM: )

Last edited by liviux76; 19 October 2014 at 23:00.
liviux76 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
PC to Amiga Connection AlfaRomeo support.Apps 4 12 September 2009 00:47
Amiga connection in BERLIN Amiga1992 Retrogaming General Discussion 3 30 April 2008 17:11
Nullmodem+TCP on unexpanded A1200 Doc Mindie New to Emulation or Amiga scene 1 08 July 2007 14:47
Nullmodem cable Tolismlf support.Hardware 1 24 November 2004 13:12
Amiga<->PC TCP Nullmodem Frog Amiga scene 7 24 October 2002 23:17

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:38.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.13156 seconds with 13 queries