|
Post by metro on Mar 26, 2021 0:04:10 GMT -5
|
|
|
Post by Carl Gundel on Mar 26, 2021 11:37:46 GMT -5
Sorry, what are we looking at here?
|
|
|
Post by metro on Mar 26, 2021 11:48:30 GMT -5
Sorry, I must have deleted my text when I uploaded the screen shot...
The error message at the bottom of v352 window ,unless I've misunderstood how to use httpget$ in lb5 it fails to retrieve the url. Url not found... The code works in lb4.5
|
|
|
Post by Carl Gundel on Mar 26, 2021 12:36:39 GMT -5
Sorry, I must have deleted my text when I uploaded the screen shot... The error message at the bottom of v352 window ,unless I've misunderstood how to use httpget$ in lb5 it fails to retrieve the url. Url not found... The code works in lb4.5 Thanks. Yeah, I will try to resolve this in the next build.
|
|
|
Post by metro on Mar 26, 2021 22:41:46 GMT -5
|
|
|
Post by Chris Iverson on Mar 27, 2021 0:16:12 GMT -5
I'm not sure it can, actually, at least not at the moment.
I think the RUN command is still the Run BASIC interpretation, not the LB4 one. (That is, it loads other LB modules, it doesn't run external executables.)
Obviously that's on the roadmap of fixing, but I'm not sure it has been yet.
Could easily be misremembering, though.
Nevermind, misremembering. LB4's RUN was added in build 350.
|
|
|
Post by metro on Mar 27, 2021 1:19:55 GMT -5
I'm not sure it can, actually, at least not at the moment.
I think the RUN command is still the Run BASIC interpretation, not the LB4 one. (That is, it loads other LB modules, it doesn't run external executables.)
Obviously that's on the roadmap of fixing, but I'm not sure it has been yet.
Could easily be misremembering, though.Nevermind, misremembering. LB4's RUN was added in build 350. Get used to it Chris, Over 65 and the misremembering happens all too often.... now where are my keys?
|
|
|
Post by Carl Gundel on Mar 27, 2021 23:34:16 GMT -5
The following works fine for me on CentOS. run "wget -O myfile.txt https://libertybasiccom.proboards.com/posts/recent" input "Press Enter to see the contents of myfile.txt"; a$ open "myfile.txt" for input as #web print input$(#web, lof(#web)) close #web
|
|
|
Post by metro on Mar 28, 2021 4:11:22 GMT -5
Thanks Carl,
|
|
|
Post by tenochtitlanuk on Mar 28, 2021 8:46:57 GMT -5
PS- I wondered why the wget method did't seem to work for me on Linux Mint, LB 4.t, then realised I was trying to read the file before wget had finished downloading it!
|
|
|
Post by donnybowers on Apr 1, 2021 17:57:00 GMT -5
wget works great. The problem is you have to run wget to get the page downloaded and then you have to parse it with LB, which means you have to pause the program because LB will get ahead of wget and try to read a file that isn't there yet. I haven't done it in awhile, but I've run shell scripts through LB5 in LinuxLiteOS. One thing I sometimes forget is to mark the script file executable before trying to run it. If it isn't marked executable it won't run. If your creating the shell script from within LB and you then want to run it, you will probably have to figure out how to use sudo (superuser) from within LB. Not sure how you would pass your user password to it, but I would think there's probably a way to do it. Also, if I remember right, programs or scripts in the current path need to be called using "./filename" rather than just "filename". Either that or using the full path to the script should work.
|
|
|
Post by donnybowers on Apr 1, 2021 18:07:43 GMT -5
I'm not sure it can, actually, at least not at the moment.
I think the RUN command is still the Run BASIC interpretation, not the LB4 one. (That is, it loads other LB modules, it doesn't run external executables.)
Obviously that's on the roadmap of fixing, but I'm not sure it has been yet.
Could easily be misremembering, though.Nevermind, misremembering. LB4's RUN was added in build 350. I've never been able to get RUN to work as expected in any version. I'll have to try it in this new version. I tend to use that command a lot. EDIT: Cool! I just tried it and it works! Loaded up Mozilla Firefox! Awesome!
|
|