Page 1 of 1

How many scripts are there in Puppy?

Posted: Tue 10 Apr 2018, 01:15
by musher0
Hello.

As the title says.

It's not really a futile question. I will dangle the answer in front of the
nose of a fellow French member who believes the bunch of us developers
are suffering from "scriptomania" and that Puppyists would be better off
clicking instead. I will write a script :twisted: to dangle the answer as many
times as the number in the answer, until his eyes fall out of their
sockets! :twisted:

Let's be clear -- as if it was not already obvious to 99.999 % of
Puppyists -- : without bash scripts there would be no Puppy.

BFN.

Posted: Wed 11 Apr 2018, 01:32
by mistfire
Around 100+ scripts

Posted: Wed 11 Apr 2018, 01:39
by musher0
mistfire wrote:Around 100+ scripts
Clearly not enough to make a torture! :twisted:

How did you get that number, mistfire?

Posted: Wed 11 Apr 2018, 01:59
by Marv
Counting shebangs, I get 120 code files in uPupBB. Seems low but it only takes one to make a torture :lol:

Posted: Wed 11 Apr 2018, 02:43
by MochiMoppel
Marv wrote:Counting shebangs, I get 120 code files in uPupBB. Seems low but it only takes one to make a torture :lol:
I get 775 in Slacko5.6 :wink: :

Code: Select all

grep -rlm1 '#!/bin/b*a*sh' /initrd/pup_ro2 | wc -l
..and 7 more in initrd.gz makes it 782.

Posted: Wed 11 Apr 2018, 03:35
by bigpup
musher0 must have a max script limit on his computer. :lol:
The things to wonder about :roll:

How many scripts does it take to make it a Puppy Linux OS :?:

Posted: Wed 11 Apr 2018, 04:54
by musher0
bigpup? Don't give anybody any ideas!!! :lol:

Posted: Wed 11 Apr 2018, 05:28
by musher0
Hello all.

Counting only scripts with an "sh" ending, I found 468 in my xenial-7.0.6 !
[/etc]>cd /root
[~]>tree -fish -L 6 | grep -E "sh$" | wc -l
54
[~]>cd /etc
[/etc]>tree -fish -L 6 | grep -E "sh$" | wc -l
29
[/etc]>cd /usr
[/usr]>tree -fish -L 6 | grep -E "sh$" | wc -l
385
[/usr]>expr 385 + 29 + 54
468 scripts at minimum.

With Triton i use vocal commands..

Posted: Wed 11 Apr 2018, 16:16
by hamoudoudou
musher0 if you want to know how many scripts you wrote in this forum they are at least 477. This is a high score.
Behind a mouse clic, there is a script, a bin.. What i ask is not to start from zero,we are human. To Copy files from here to there, We just drag them with our mouse. To open an ISO, we click on it. To open a Pupsave, we click on it. And we like it.
Begin with 0 1, hexadecimal, C language if you like.. IMO it is better to start where others are arrived..
With Triton i use vocal commands.. IN FRENCH

Posted: Fri 13 Apr 2018, 05:13
by technosaurus
bigpup wrote:How many scripts does it take to make it a Puppy Linux OS :?:
1

Posted: Fri 13 Apr 2018, 07:52
by musher0
technosaurus wrote:
bigpup wrote:How many scripts does it take to make it a Puppy Linux OS :?:
1
Noooohhh, you don't say!!!...
Pulling our leg, are you, technosaurus!!! :lol:

Posted: Fri 13 Apr 2018, 08:28
by foxpup
musher0 wrote:
technosaurus wrote:
bigpup wrote:How many scripts does it take to make it a Puppy Linux OS :?:
1
Noooohhh, you don't say!!!...
Pulling our leg, are you, technosaurus!!! :lol:
My guess: the init

Posted: Sat 14 Apr 2018, 01:31
by technosaurus
foxpup wrote:
musher0 wrote:
technosaurus wrote:1
Noooohhh, you don't say!!!...
Pulling our leg, are you, technosaurus!!! :lol:
My guess: the init
No need to guess, follow the link where I demonstrate how to combine multiple scripts into 1 the way busybox does it (only in shell instead of C - thus the name bashbox). A single large shell script is highly compressible and only uses up 1 inode (if you use hardlinks) if you had ~512 scripts instead, it would take up a minimum of 2Mb (assuming 4kb page sizes) even on a compressed filesystem whereas with a single script it could be as low as 4kb. The other bonus that you get is that every "script" is already preloaded into RAM as long as any other "script" from the multicall script has been run (which is always if one of them is init).

This method only works well with a unified development team - Puppy it turns out, is not the right community for it... Maybe if I resume my PLiNG project.

as a poor lonesome cow-boy.

Posted: Wed 13 Jun 2018, 06:33
by hamoudoudou
Just to inform you can make your scripts in programming section, no need to create an anglophone forum where you will feel alone.. as a poor lonesome cow-boy.

Re: as a poor lonesome cow-boy.

Posted: Wed 13 Jun 2018, 06:52
by darry19662018
hamoudoudou wrote:Just to inform you can make your scripts in programming section, no need to create an anglophone forum where you will feel alone.. as a poor lonesome cow-boy.


Why so he can experience your "constructive comments" and then you complain when some one points out a few home truths to you and you of course do no wrong.

a Silicon Valey for brain-stormers. with experts..

Posted: Fri 15 Jun 2018, 12:32
by hamoudoudou
I wanted just to remember that our forum category Programing is created to satisfy most of programers. a Silicon Valey for brain-stormers. with experts..available for help to learners (in programing).
IF Puppy was Puppy-City, we need one programmer, as a Baker.
All the inhabitants had not to be programmers, they would fight together.

Posted: Sat 16 Jun 2018, 02:56
by slavvo67
3... just 3....