WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED]Running a script in Terminal  (Read 18407 times)

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: [SOLVED]Running a script in Terminal
« Reply #30 on: March 09, 2013, 03:50:46 AM »
Those naughty admins need a good "bashing"  :)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: [SOLVED]Running a script in Terminal
« Reply #31 on: March 11, 2013, 09:18:56 AM »
bacon is added to the repo.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: [SOLVED]Running a script in Terminal
« Reply #32 on: March 11, 2013, 11:24:59 AM »
Hi bmarkus
The comments field in the info file reads  Compiled for RPI. I don't see  bash.tcz  in the  .deps  file, did you
remove that as a requirement?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: [SOLVED]Running a script in Terminal
« Reply #33 on: March 11, 2013, 11:42:48 AM »
@Rich

I built it for both RPi and x86 and forgot to edit x86 info file, thanks for noting.

It's an elf binary, you do not need bash at all. Story is interesting. bacon is provided as a bash (or korn) shell script and in BASIC. First time you build the compiler (bacon.bac) with bacon.bash to get the the executable elf binary. When you have it no need for the bash compiler anymore. Also compiled it with the executable version. While it is faster than the bash version, got the same result with default option. Compiling with -O2 however get smaller and faster compiler.

I'm not a fun of BASIC and specially hate VBS I have to use frequently on WINDOWS, this bacon offers features like internationalization of messages, creation and use shared object files, networking, etc. Also have bencmarking C, LUA, LUAJIT, Perl, Python and bacon where bacon performing fine.

So, on LINUX it can be a feasible alternative tool if portability to WINDOWS is not needed.
« Last Edit: March 11, 2013, 12:08:54 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: [SOLVED]Running a script in Terminal
« Reply #34 on: March 11, 2013, 12:16:36 PM »
Hi bmarkus
Thanks for the explanation, that would have been worthwhile for them to mention on their website. While also not
a big fan of BASIC, about 10 years ago I played around a bit with VB3 and VB4. VB3 was nice, built reasonably
small executables, and if something was to slow, like plotting a lot of data points, you could make a call to one
of the system DLLs to do it for you.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: [SOLVED]Running a script in Terminal
« Reply #35 on: March 11, 2013, 12:34:29 PM »
It is just the usual bootstrapping to install a compiler, nothing special, so I can understand why it is not mentioned.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: [SOLVED]Running a script in Terminal
« Reply #36 on: March 11, 2013, 01:35:31 PM »
Hi bmarkus

Thanks for adding BaCon to the repo.

I have always believed that one of the stumbling blocks for beginner programmers on Linux is the availability of a simple to understand
language which hides the inner workings of Linux and thus allows one to gain confidence, plus many programmers coming from the
Windows world will invariably have used VB.
BaCon fills this gap very nicely.

Although I also use C and ASM, BaCon is particularly nice for making small GUI apps and the network features of it saves lots of time compared to C or C++.

What I like most about BaCon is the ability to use shared libs and also to create them, where as VB can only use the Windows
version of shared libs (DLLs) but can't compile them.

By the way, did you include HUG.bac when you compiled BaCon?

« Last Edit: March 11, 2013, 01:49:59 PM by Paulo »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: [SOLVED]Running a script in Terminal
« Reply #37 on: March 11, 2013, 02:15:56 PM »
By the way, did you include HUG.bac when you compiled BaCon?

No
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: [SOLVED]Running a script in Terminal
« Reply #38 on: March 11, 2013, 02:22:29 PM »
My apologies, but I found this great youtube video about the many uses of bacon...

http://www.youtube.com/watch?v=wSReSGe200A

:)
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: [SOLVED]Running a script in Terminal
« Reply #39 on: March 11, 2013, 02:42:49 PM »
@Lee
Very funny video, thanks for sharing.  ;D

@bmarkus

You gonna have to rub some bacon on it as hug.bac is required for GUI apps.
Will the compiled version still work if one adds:
INCLUDE hug.bac
in the Basic source?
Sorry for asking as I have never used the compiled version of BaCon, only the Bash version.
« Last Edit: March 11, 2013, 02:45:24 PM by Paulo »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: [SOLVED]Running a script in Terminal
« Reply #40 on: March 11, 2013, 02:46:02 PM »
Hi Paulo
Bmarkus doesn't   "have to"  do anything. Try asking nicely.

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: [SOLVED]Running a script in Terminal
« Reply #41 on: March 11, 2013, 02:48:36 PM »
@Rich

It was meant in a humorous manner in keeping with the youtube video.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: [SOLVED]Running a script in Terminal
« Reply #42 on: March 11, 2013, 03:03:16 PM »
Hi Paulo
I didn't watch the video since I don't have flash installed on this machine. Regardless, it was the wording I
objected to which reads more like a demand than a request, as opposed for example to writing it something like:
Code: [Select]
Maybe you could rub some bacon on it? As hug.bac is required for GUI apps.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: [SOLVED]Running a script in Terminal
« Reply #43 on: March 11, 2013, 03:22:47 PM »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Paulo

  • Full Member
  • ***
  • Posts: 139
Re: [SOLVED]Running a script in Terminal
« Reply #44 on: March 11, 2013, 03:27:02 PM »
Hi Rich

Had you watched the video, I suspect that your view would have been very different
and since my request/demand (depending on how one interprets it) was directed at bmarkus,
I would be interested in his view about it.