Re: Could Gnome's "install pending software updates" cause installation scripts to misbehave?

2024-03-29 Thread Lucas B. Cohen
On Fri 29 Mar 2024 at 11:06:45 (-0400), Henning Follmann wrote: On Fri, Mar 29, 2024 at 12:01:27PM +0100, Lucas B. Cohen wrote: Hi, I've had a bit of a headache understanding why my Debian bookworm system suddenly panicked at boot with an 'unable to mount root fs' error. Turns out the first of

Re: Could Gnome's "install pending software updates" cause installation scripts to misbehave?

2024-03-29 Thread David Wright
ice node/file (/dev/md0 in this case, hence the kernel panic). > > Was there any error message during the update? > I think what might have gone wrong, that you ran out of space on /boot. > > > I've poured through the grub scripts a bit but they're quite complex. I've

Re: Could Gnome's "install pending software updates" cause installation scripts to misbehave?

2024-03-29 Thread Henning Follmann
during the update? I think what might have gone wrong, that you ran out of space on /boot. > I've poured through the grub scripts a bit but they're quite complex. I've > noticed that : Yeah, don't do that. These files are all automatically managed. All changes should

Could Gnome's "install pending software updates" cause installation scripts to misbehave?

2024-03-29 Thread Lucas B. Cohen
g it to do, by honoring GRUB_DISABLE_LINUX_UUID != true) ; instead these menuentries were using the device node/file (/dev/md0 in this case, hence the kernel panic). I've poured through the grub scripts a bit but they're quite complex. I've noticed that : - uninstalling the se

Re: Support for SysV service scripts deprecated in systemd 255 (was: systemd and timezone)

2023-12-22 Thread Felix Miata
ib/, …) has been removed. For more details, see: >> https://lists.freedesktop.org/archives/systemd-devel/2022-September/048352.html >>     * Support for System V service scripts is now deprecated and >> will be >>   removed in a future release. Please make sure to update your

Re: "echo" literally in sh scripts (was: why would "tr --complement --squeeze-repeats ..." append the substitution char once more? ...)

2023-12-11 Thread Greg Wooledge
On Mon, Dec 11, 2023 at 10:16:35AM -0500, Stefan Monnier wrote: > > 1) Many implementations of echo will interpret parts of their argument(s), > >in addition to processing options like -n. If you want to print a > >variable's contents to standard output without *any* interpretation, > >

"echo" literally in sh scripts (was: why would "tr --complement --squeeze-repeats ..." append the substitution char once more? ...)

2023-12-11 Thread Stefan Monnier
> 1) Many implementations of echo will interpret parts of their argument(s), >in addition to processing options like -n. If you want to print a >variable's contents to standard output without *any* interpretation, >use printf. > > printf %s "$myvar" > printf '%s\n' "$myvar" In

gimp scripts

2023-06-06 Thread mick.crane
ck on the visibility in the layers window. I'd rather not learn how these scripts work if I don't have to. Anybody able to post adjustment to the guy's script to just toggle the top 2 layers without the dialogue? cheers mick

Re: [Solved] LXDE ― Autorun on Every Start up — Applications, Commands, Scripts

2023-05-25 Thread Vincent Lefevre
On 2023-05-18 16:53:39 +0700, Max Nikulin wrote: > On 18/05/2023 14:38, Susmita/Rajib wrote: > > Nearly none relevant on the internet: > > https://www.google.com/search?q=lxde+docu > > > > Forums isn't very informative: > > https://forum.lxde.org/ > > > > So much wasted efforts all around! > > Y

Re: [Solved] LXDE ― Autorun on Every Start up — Applications, Commands, Scripts

2023-05-18 Thread Max Nikulin
On 18/05/2023 14:38, Susmita/Rajib wrote: Nearly none relevant on the internet: https://www.google.com/search?q=lxde+docu Forums isn't very informative: https://forum.lxde.org/ So much wasted efforts all around! Your internet is rather useless. Mine is much better: https://wiki.archlinux.org

[Solved] LXDE ― Autorun on Every Start up — Applications, Commands, Scripts

2023-05-18 Thread Susmita/Rajib
Solution at: https://lists.debian.org/debian-user/2023/05/msg00789.html Nearly no documentation exists on LXDE: https://wiki.lxde.org/en/ Nearly none relevant on the internet: https://www.google.com/search?q=lxde+docu Forums isn't very informative: https://forum.lxde.org/ So much wasted efforts

Re: bookworm multimedia scripts silent in console but play in mate-terminal

2023-04-13 Thread Jude DaShiell
Pipewire is now on this machine since this didn't work with pulseaudio either. -- Jude "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." Ed Howdershelt 1940. On Thu, 13 Apr 2023, Dan Ritter wrote: > Jude DaShiell wrote: > > Here's

Re: bookworm multimedia scripts silent in console but play in mate-terminal

2023-04-13 Thread Dan Ritter
Jude DaShiell wrote: > Here's one script that works that way. Standard package install choices > were done desktop environment, mate, and standard utilities. > An install with only standard utilities and no desktop environment and no > mate prevents this script from playing at all. > #!/usr/bin/

bookworm multimedia scripts silent in console but play in mate-terminal

2023-04-13 Thread Jude DaShiell
Here's one script that works that way. Standard package install choices were done desktop environment, mate, and standard utilities. An install with only standard utilities and no desktop environment and no mate prevents this script from playing at all. Mpv is already installed on this machine too

OT: Thanks and Margaret Thatcher (was: Re: scripts, was Re: TBird mail)

2022-12-08 Thread rhkramer
Thanks to David Wright and Greg Wooledge for their replies. Thanks also to David for the reference to the article on Margaret Thatcher -- I'm trying to obtain a copy through my local library (ILL). On Wednesday, December 07, 2022 11:53:18 AM David Wright wrote: ... > Margaret Thatcher is a prim

scripts, was Re: TBird mail

2022-12-07 Thread David Wright
tf '%T@ %TY-%Tm-%Td %TT %p\0' | > > sort -zn | > > while read -rd '' _ day time path; do > > printf '%s %s %s\n' "$day" "${time%.*}" "$path" > > done > > } > > I wonder if youi could expound somewha

[Sid] csync2 startup scripts

2021-10-19 Thread Grzesiek Sójka
I think there is something wrong with scync2 startup scripts: # systemctl status csync2.service ○ csync2.service - LSB: Cluster file synchronization daemon Loaded: loaded (/etc/init.d/csync2; generated) Active: inactive (dead) since Tue 2021-10-19 15:44:16 CEST; 7min ago Docs

Re: Request: A Debian public Wiki repository/bank for complex code lines with examples, scripts, self-explanatory with terminal, otherwise Minimal explanatory texts

2021-04-03 Thread Brian
On Sat 03 Apr 2021 at 11:26:51 -0400, rhkra...@gmail.com wrote: > On Friday, April 02, 2021 01:11:01 AM Susmita/Rajib wrote: > > Thank you, Dr./Mr. Kramer, for taking time to post your kind inputs. > > To me, the best possible option would be an organisationally hosted > > wiki site with strict po

Re: Request: A Debian public Wiki repository/bank for complex code lines with examples, scripts, self-explanatory with terminal, otherwise Minimal explanatory texts

2021-04-03 Thread Susmita/Rajib
On Sat, 3 Apr 2021 11:26:51 -0400, rhkra...@gmail.com wrote: > To: debian-user@lists.debian.org [...] > Message-id: <[🔎] 202104031126.51275.rhkra...@gmail.com> > In-reply-to: <[🔎] > CAEG4cZUx8-gHimrykbsc88o4FhePNGhLk2v8QLdButiV=hc...@mail.gmail.com> > References: > > > <[🔎] CAEG4c

Re: Request: A Debian public Wiki repository/bank for complex code lines with examples, scripts, self-explanatory with terminal, otherwise Minimal explanatory texts

2021-04-03 Thread Peter Ehlert
On 4/3/21 8:26 AM, rhkra...@gmail.com wrote: On Friday, April 02, 2021 01:11:01 AM Susmita/Rajib wrote: Thank you, Dr./Mr. Kramer, for taking time to post your kind inputs. To me, the best possible option would be an organisationally hosted wiki site with strict posting guidelines, and pages a

Re: Request: A Debian public Wiki repository/bank for complex code lines with examples, scripts, self-explanatory with terminal, otherwise Minimal explanatory texts

2021-04-03 Thread rhkramer
On Friday, April 02, 2021 01:11:01 AM Susmita/Rajib wrote: > Thank you, Dr./Mr. Kramer, for taking time to post your kind inputs. > To me, the best possible option would be an organisationally hosted > wiki site with strict posting guidelines, and pages as described. Just a followup: I wasn't awa

Re: Request: A Debian public Wiki repository/bank for complex code lines with examples, scripts, self-explanatory with terminal, otherwise Minimal explanatory texts

2021-04-01 Thread Susmita/Rajib
On Thu, 1 Apr 2021 09:38:07 -0400, rhkra...@gmail.com wrote: > To: debian-user@lists.debian.org [...] > Message-id: <[🔎] 202104010938.07787.rhkra...@gmail.com> > In-reply-to: > > References: > > > [...] >* There are wikis available that you could start making pages for -- o

Re: Request: A Debian public Wiki repository/bank for complex code lines with examples, scripts, self-explanatory with terminal, otherwise Minimal explanatory texts

2021-04-01 Thread rhkramer
Intentionally to posting, as it is a general comment to the entire thread, not anything specific in this email (I think). My comments: * Some interesting ideas -- when are you going to implement them? Or are you trying to get others to implement them? It would be useful / helpful if you g

Re: Request: A Debian public Wiki repository/bank for complex code lines with examples, scripts, self-explanatory with terminal, otherwise Minimal explanatory texts

2021-03-31 Thread Dan Ritter
Susmita/Rajib wrote: > > > The best possible method of learning appears to be minimal > explanation, but exhaustive implementation of code lines in a > console/terminal. While you may think that this is the best way for you to learn about command lines, most people don't do well this way. Most

Re: Request: A Debian public Wiki repository/bank for complex code lines with examples, scripts, self-explanatory with terminal, otherwise Minimal explanatory texts

2021-03-31 Thread Susmita/Rajib
On Wed, 31 Mar 2021 11:15:13 +0100, Darac Marjal wrote: > To: debian-user@lists.debian.org [...] > Message-id: <[🔎] 258050bc-618b-e8ae-6a93-fc4483c42...@darac.org.uk> > In-reply-to: <[🔎] > CAEG4cZVHeUrD5Ke1iMd_MLSXuw6j8+k+AhEteKfYoQPO2v=m...@mail.gmail.com> > References: > > > >

Re: Request: A Debian public Wiki repository/bank for complex code lines with examples, scripts, self-explanatory with terminal, otherwise Minimal explanatory texts

2021-03-31 Thread Darac Marjal
On 31/03/2021 10:46, Susmita/Rajib wrote: > Follow Up from https://lists.debian.org/debian-user/2021/03/msg01459.html, > > Motivation: > https://lists.debian.org/debian-user/2021/03/msg01358.html > https://lists.debian.org/debian-user/2021/03/msg01362.html > https://lists.debian.org/debian-user/20

Request: A Debian public Wiki repository/bank for complex code lines with examples, scripts, self-explanatory with terminal, otherwise Minimal explanatory texts

2021-03-31 Thread Susmita/Rajib
Follow Up from https://lists.debian.org/debian-user/2021/03/msg01459.html, Motivation: https://lists.debian.org/debian-user/2021/03/msg01358.html https://lists.debian.org/debian-user/2021/03/msg01362.html https://lists.debian.org/debian-user/2021/03/msg01365.html https://lists.debian.org/debian-us

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-30 Thread Charles Curley
On Tue, 30 Mar 2021 17:20:11 +0300 George Shuklin wrote: > My point was that 'sh' approach (including > bash and dash) is really, really bad. Bash as a programming language > is super tricky, with lots of landmines and almost no validation > whatsoever for errors (there is a bit, but way less th

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-30 Thread George Shuklin
On 26/03/2021 16:59, Dan Ritter wrote: George Shuklin wrote: But it's all software. Debian can't change sh to be 'not sh'. And any changes in a build stack are touching vast amount of software with extremely complex use-cases, so it's almost impossible to 'replace'. You can 'add' a new one, but

Re: Possible?! A Debian public repository for all complex code lineswith examples and scripts?

2021-03-28 Thread Susmita/Rajib
I continue to feel sorry for Dr. Cmdte Alpha Tigre Z and Dr. Andrew M.A. Cater and their so much efforts. I would take full responsibility for not being able to explain myself better, despite having the seed within me for so many years. May be, in distant future, this impediment will be gotten ove

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-28 Thread Cmdte Alpha Tigre Z
El dom, 28 mar 2021 a las 9:48, Andrew M.A. Cater () escribió: > Have a look at the FAQ posted to this list once a month > for some ideas on how this list works. If something solves the problem / you > find a good answer that might help someone else, adding something like > subject line - [SOLVED]

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-28 Thread Cmdte Alpha Tigre Z
Hi. El sáb, 27 mar 2021 a las 23:18, Cmdte Alpha Tigre Z () escribió: > [many things] Sorry, I forgot to finish writing my titles on my past post, so if you need them, here are the lines where a different section begin: Line 344: 2.5. To Mr. Greg Wooledge. Line 367: 2.6. To someone anonymous, fo

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-28 Thread Andrew M.A. Cater
On Fri, Mar 26, 2021 at 07:11:24PM +0530, Susmita/Rajib wrote: > My illustrious Team Leaders and Movers of the Debian List, > We are all volunteers - the salutation is fine, but we're no more than volunteers here. > It has often been advised by experienced users of Debian for the > learners to fo

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-27 Thread Christian Nzhie
won't repeat the manual > of every other program it depends on. > > > > (...) > > No. The way in which languages are generally described is by breaking > > them down into their component parts, and devising general rules for > > combining those parts. Fortunately the

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-27 Thread Cmdte Alpha Tigre Z
ed" shells. I thought that was the intention of zsh. Ejem, I really don't know. > So it's up to you, and all other users of the language, to build > your own command lines out of those parts that you like, just as we > combine our favoured words into sentences (possibly con

Re: Possible?! A Debian public repository for all complex code lineswith examples and scripts?

2021-03-27 Thread Susmita/Rajib
On Fri, 26 Mar 2021 16:47:27 +0200, George Shuklin wrote: ... ... [snipped] ... ... [snipped] ... ... > Message-id: <[🔎] e7278f2e-45d8-4d4c-130d-6928fb435...@gmail.com> > In-reply-to: <[🔎] > CAEG4cZXowSjn0S+s6_UMXHwko_L6EXm=aqhxaqz74

Re: Possible?! A Debian public repository for all complex code lineswith examples and scripts?

2021-03-27 Thread Susmita/Rajib
Yesterday, I also received a few precious observations (even counter-views are welcome) from two gifted individuals. The observations are too deep to let vanish into oblivion. However, it is incumbent upon me to protect the privacy of those gifted individuals. So I will only post a part of our obse

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-26 Thread Dan Ritter
Greg Wooledge wrote: > On Fri, Mar 26, 2021 at 10:59:20AM -0400, Dan Ritter wrote: > > To be completely clear, Debian did change sh from Bourne-ish sh > > to dash in Squeeze -- 2006 or so. > > Squeeze was released in 2011. ... > The change from bash to dash as the default /bin/sh happened in squ

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-26 Thread Greg Wooledge
special regex engine with their own special extensions. The effect of this is that people who only learned Linux, not Unix, often write scripts that use the GNU extensions, and therefore do not work on any other Unix-type systems. You'll want to watch out for that. There are several other regu

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-26 Thread Greg Wooledge
ritten local or third-party scripts). The change from bash to dash as the default /bin/sh happened in squeeze, according to <https://en.wikipedia.org/wiki/Almquist_shell>. At no point, to the best of my knowledge, did Debian *ever* use a "Bourne-ish" shell as /bin/sh. I'm n

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-26 Thread David Wright
(possibly containing phrases and clauses). > Is not this general unavailability of those more complex codes — then > becomes a de-facto non-disclosure of complex code lines — against the > very Policy of Free and Open Source systems? I'm not aware of any scripts in Debian linux that

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-26 Thread Michael Grant
Unfortunately this is a bit of a mess but you need to understand the history and politics here. First off, Debian, as well as the other Unix and Linux distributions are a collection of lots of different things from differnet places and you get an operating system out of it all. Something like Mic

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-26 Thread Dan Ritter
George Shuklin wrote: > But it's all software. Debian can't change sh to be 'not sh'. And any > changes in a build stack are touching vast amount of software with extremely > complex use-cases, so it's almost impossible to 'replace'. You can 'add' a > new one, but it just make xkcd #927. To be co

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-26 Thread Susmita/Rajib
On 26/03/2021, to...@tuxteam.de wrote: ... ... [snipped] ... ... >> Shouldn't all codes and tricks involving them be available for >> everyone to use, but still have the system so robust that it can't be >> hacked? > > I think "all" is a very tall order: the whole

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-26 Thread George Shuklin
On 26/03/2021 15:41, Susmita/Rajib wrote: Even the book that I have procured — The Linux Command Line, A Complete Introduction, by William Shotts — has all codes spread (or sprewn) across many pages and has to be brought together by exhaustive note taking. It is clearly noticed that wide appli

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-26 Thread Dan Ritter
Susmita/Rajib wrote: > It is clearly noticed that wide applications of tricks with wildcards, > regex and redirections aren't simply available in the man pages. > > So is it then not necessary to have a repository of codes, with all > permutations & combinations of possibilities with wildcards/re

Re: Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-26 Thread tomas
On Fri, Mar 26, 2021 at 07:11:24PM +0530, Susmita/Rajib wrote: > My illustrious Team Leaders and Movers of the Debian List, [...] > Shouldn't all codes and tricks involving them be available for > everyone to use, but still have the system so robust that it can't be > hacked? I think "all" is a

Possible?! A Debian public repository for all complex code lines with examples and scripts?

2021-03-26 Thread Susmita/Rajib
My illustrious Team Leaders and Movers of the Debian List, It has often been advised by experienced users of Debian for the learners to focus more on man pages. I shall seek a few examples before i place my questions. Let us for instance look at the man page of ls at: https://manpages.debian.org

Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via virtual terminal available packages)

2020-09-25 Thread David Wright
gt; You know what else works really well? Just putting a different start > > time in each system's crontab. > > If that works for you, great, but I have quite a few machines, VMs > and containers provisioned identically and would rather not have to > change the scripts or co

Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via virtual terminal available packages)

2020-09-25 Thread Andy Smith
d. There's some more here: http://0pointer.de/blog/projects/ids.html > You know what else works really well? Just putting a different start > time in each system's crontab. If that works for you, great, but I have quite a few machines, VMs and containers provisioned identic

Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via virtual terminal available packages)

2020-09-25 Thread Greg Wooledge
On Fri, Sep 25, 2020 at 07:44:25AM +, Andy Smith wrote: > "hostid" tends to return a hexadecimal representation of the first > IPv4 address (but isn't guaranteed to). unicorn:~$ hostid 007f0101 Doesn't look very useful. That's just 127.0.1.1 in a 16-bit little endian format. > On a systemd

Deterministic delays in POSIX shell scripts (Was: Re: notify via virtual terminal available packages)

2020-09-25 Thread Andy Smith
Hello, On Thu, Sep 24, 2020 at 08:49:07AM -0600, Charles Curley wrote: > On Thu, 24 Sep 2020 10:38:55 -0400 > Greg Wooledge wrote: > > So you're just doing "sleep 1" every time. > > Ah, thank you. Yup. Which is weird, because it worked when I first > wrote t

Re: setting up Apache2 to execute cgi-bin perl scripts [SOLVED]

2020-07-31 Thread Gary Dale
On 2020-07-31 11:32, Henning Follmann wrote: On Fri, Jul 31, 2020 at 11:12:53AM -0400, Gary Dale wrote: My server is running Debian/Stable on an AMD64 system. I'm trying to set up its local Apache2 service to execute cgi-bin scripts but I'm having some problems getting it to work. I

Re: setting up Apache2 to execute cgi-bin perl scripts

2020-07-31 Thread Henning Follmann
On Fri, Jul 31, 2020 at 11:12:53AM -0400, Gary Dale wrote: > My server is running Debian/Stable on an AMD64 system. > > I'm trying to set up its local Apache2 service to execute cgi-bin scripts > but I'm having some problems getting it to work. > > I note that /etc/a

setting up Apache2 to execute cgi-bin perl scripts

2020-07-31 Thread Gary Dale
My server is running Debian/Stable on an AMD64 system. I'm trying to set up its local Apache2 service to execute cgi-bin scripts but I'm having some problems getting it to work. I note that /etc/apache2/conf-enabled contains a link to /etc/apache2/conf-available/serve-cgi-bin.c

Re: Looping Shell Scripts and System Load

2020-06-25 Thread David
On Thu, 25 Jun 2020 at 19:23, Tixy wrote: > On Wed, 2020-06-24 at 13:43 -0400, Greg Wooledge wrote: > [Lots of good shell scripting advice snipped] > Thanks Greg for posting these code reviews of people's scripts, it's > not just the script authors which might learn so

Re: Looping Shell Scripts and System Load

2020-06-25 Thread Tixy
On Wed, 2020-06-24 at 13:43 -0400, Greg Wooledge wrote: [Lots of good shell scripting advice snipped] Thanks Greg for posting these code reviews of people's scripts, it's not just the script authors which might learn something, but also some of us list subscribers. :-) -- Tixy

Re: Looping Shell Scripts and System Load

2020-06-24 Thread Martin McCormick
Greg Wooledge writes: > All-caps names are reserved for environment variables (HOME, PATH), > and internal shell variables (IFS, PWD, HISTFILE). > > Avoiding all-caps names allows you to avoid collisions with a variable > name that might be used for something else. Most of the time. This > bein

Re: Looping Shell Scripts and System Load

2020-06-24 Thread David Christensen
rt 3 unzip processes. This directory had 13 zip files and the first 2 or 3 roared to life and then things slowed down as they all tried to run. I expected this and I've been doing unix shell scripts for literally 31 years this Summer so it is no mystery as each new job spawns a whol

Re: Looping Shell Scripts and System Load

2020-06-24 Thread Kamil Jońca
Greg Wooledge writes: > On Wed, Jun 24, 2020 at 08:23:18PM +0200, Roger Price wrote: >> On Wed, 24 Jun 2020, Greg Wooledge wrote: >> >> > > MEDIADIR=`pwd` >> > >> > Don't use all caps variable names. >> >> Without getting into syntax-religious wars, what is the reasoning behind >> this recomme

Re: Looping Shell Scripts and System Load

2020-06-24 Thread Greg Wooledge
On Wed, Jun 24, 2020 at 08:23:18PM +0200, Roger Price wrote: > On Wed, 24 Jun 2020, Greg Wooledge wrote: > > > > MEDIADIR=`pwd` > > > > Don't use all caps variable names. > > Without getting into syntax-religious wars, what is the reasoning behind > this recommendation? Roger All-caps names ar

Re: Looping Shell Scripts and System Load

2020-06-24 Thread Roger Price
On Wed, 24 Jun 2020, Greg Wooledge wrote: MEDIADIR=`pwd` Don't use all caps variable names. Without getting into syntax-religious wars, what is the reasoning behind this recommendation? Roger

Re: Looping Shell Scripts and System Load

2020-06-24 Thread D. R. Evans
Martin McCormick wrote on 6/24/20 11:19 AM: > > Right now, uptime looks like: > > 11:48:07 up 26 days, 23:10, 7 users, load average: 16.15, 15.60, 10.65 > > That's pretty loaded so ideally, one could start the > looping script and it would fire up processes until things got > rea

Re: Looping Shell Scripts and System Load

2020-06-24 Thread Greg Wooledge
On Wed, Jun 24, 2020 at 01:24:23PM -0400, Roberto C. Sánchez wrote: > I recommend you look at the parallel package. It is specifically geared > toward parallelization of constructed shell command lines. Think > something along the lines of "find -exec " but with the ability > to parallel

Re: Looping Shell Scripts and System Load

2020-06-24 Thread Greg Wooledge
On Wed, Jun 24, 2020 at 12:19:30PM -0500, Martin McCormick wrote: > #!/bin/sh Why? Use bash. > unarchive () { > unzip $1 Quotes. > MEDIADIR=`pwd` Don't use all caps variable names. Don't use backticks. Use $() for command substitution. Don't use $(pw

Re: Looping Shell Scripts and System Load

2020-06-24 Thread Roberto C . Sánchez
On Wed, Jun 24, 2020 at 12:19:30PM -0500, Martin McCormick wrote: > I wrote a shell script that unzips documents and I originally > wrote it such that it gets document #1, unzips it then gets > document #2, etc and it does that just fine so I wondered if I > could make it run faster by starting sev

Looping Shell Scripts and System Load

2020-06-24 Thread Martin McCormick
iles and the first 2 or 3 roared to life and then things slowed down as they all tried to run. I expected this and I've been doing unix shell scripts for literally 31 years this Summer so it is no mystery as each new job spawns a whole new set of processes to unzip the file it is workin

Re: Debian 8 how to install and run init.d scripts?

2019-10-28 Thread Greg Wooledge
On Sat, Oct 26, 2019 at 08:59:16AM +0200, to...@tuxteam.de wrote: > On Fri, Oct 25, 2019 at 11:14:22PM +0200, Steffen Dettmer wrote: > > Not sure if on topic, but I what is needed to guess, it should run the > > scripts in order of their rcX/Snn number? I though the difficulty >

Re: Debian 8 how to install and run init.d scripts?

2019-10-25 Thread tomas
On Fri, Oct 25, 2019 at 11:14:22PM +0200, Steffen Dettmer wrote: [...] > Not sure if on topic, but I what is needed to guess, it should run the > scripts in order of their rcX/Snn number? I though the difficulty > would be to use a suited nn number (and in fact, if my init.d script &g

Re: Debian 8 how to install and run init.d scripts?

2019-10-25 Thread Steffen Dettmer
Hi, thanks for your reply. On Tue, Oct 22, 2019 at 5:45 AM Peter Wiersig wrote: > Steffen Dettmer writes: > > So you propose not to use init.d scripts. I usually prefer a simple shell > > script that is easy to test, systemd is just way to complex. > > Like Greg sa

Re: Debian 8 how to install and run init.d scripts?

2019-10-25 Thread Steffen Dettmer
On Mon, Oct 21, 2019 at 9:32 PM Greg Wooledge wrote: > On Mon, Oct 21, 2019 at 09:26:57PM +0200, Steffen Dettmer wrote: > > On Mon, Oct 21, 2019 at 3:27 PM Greg Wooledge > wrote: > > > This is not correct. Debian's systemd will use init.d scripts in > > > co

Re: Debian 8 how to install and run init.d scripts?

2019-10-21 Thread Peter Wiersig
Steffen Dettmer writes: > So you propose not to use init.d scripts. I usually prefer a simple shell > script that is easy to test, systemd is just way to complex. But probably > for Debian you are right, if I understood correctly, newer versions do not > even support init.d / LSB

Re: Debian 8 how to install and run init.d scripts?

2019-10-21 Thread Greg Wooledge
On Mon, Oct 21, 2019 at 09:26:57PM +0200, Steffen Dettmer wrote: > On Mon, Oct 21, 2019 at 3:27 PM Greg Wooledge wrote: > > This is not correct. Debian's systemd will use init.d scripts in > > compatibility mode. > > Ahh, this sounds good! But how to do that correc

Re: Debian 8 how to install and run init.d scripts?

2019-10-21 Thread Steffen Dettmer
ired there. > > This is not correct. Debian's systemd will use init.d scripts in > compatibility mode. Ahh, this sounds good! But how to do that correctly? Installing the script and calling insserv does not work; by reading the wrapper scripts I accidentally found that it works with I s

Re: Debian 8 how to install and run init.d scripts?

2019-10-21 Thread Greg Wooledge
On Mon, Oct 21, 2019 at 12:20:10PM +0200, Steffen Dettmer wrote: > So you propose not to use init.d scripts. I usually prefer a simple shell > script that is easy to test, systemd is just way to complex. An init.d script is approximately 5 to 10 times as complicated as a systemd unit.

Re: Debian 8 how to install and run init.d scripts?

2019-10-21 Thread Steffen Dettmer
Hi, thanks for your reply. On Sun, Oct 20, 2019 at 10:26 PM Peter Wiersig wrote: > 5.) > Instead of init.d scripts create systemd units. > https://wiki.debian.org/systemd#Creating_or_altering_services https://freedesktop.org/wiki/Software/systemd/ So you propose not to use init.d s

Re: Debian 8 how to install and run init.d scripts?

2019-10-21 Thread Steffen Dettmer
Hi, thank you for your reply. On Fri, Oct 18, 2019 at 3:34 PM Jonas Smedegaard wrote: > Quoting Steffen Dettmer (2019-10-18 15:17:10) > > in short: how to use "init.d" scripts on Debian? > > In short: > > service $SERVICE stop > Thanks for the tip. man i

Re: Debian 8 how to install and run init.d scripts?

2019-10-20 Thread Peter Wiersig
5.) Instead of init.d scripts create systemd units. https://wiki.debian.org/systemd#Creating_or_altering_services https://freedesktop.org/wiki/Software/systemd/ About your gitlab-runner.service failure: https://wiki.debian.org/systemd#Failed_units HINT: Extensive debugging information about

Re: Debian 8 how to install and run init.d scripts?

2019-10-18 Thread Jonas Smedegaard
Quoting Steffen Dettmer (2019-10-18 15:17:10) > in short: how to use "init.d" scripts on Debian? In short: service $SERVICE stop service $SERVICE start service $SERVICE reload service $SERVICE force-reload service $SERVICE restart > in detail: > > On one serve

Debian 8 how to install and run init.d scripts?

2019-10-18 Thread Steffen Dettmer
Hi, in short: how to use "init.d" scripts on Debian? in detail: On one server a init.d script with LSB header does not work, at least when started by command line. I traced down the following: #1 init.d/script sources /lib/lsb/init-functions #2 /lib/lsb/init-functions has support

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-29 Thread Mikhail Morfikov
de? In such way it would be easy to >>> set this up. > > apt list --upgradable > will print out a list, but the output of 'apt' is not considered suitable for > parsing by scripts (still unstable). > apt-get --simulate upgrade > will also print the packages to be

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-29 Thread John Crawley (johnraff)
list, but the output of 'apt' is not considered suitable for parsing by scripts (still unstable). apt-get --simulate upgrade will also print the packages to be upgraded, along with a lot of noise that your script would have to filter. But: On Wed, 28 Mar 2018 20:18:24 +0200 Mikhai

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-29 Thread Mikhail Morfikov
On 2018-03-29 01:03, John Crawley (johnraff) wrote: > On 2018-03-29 03:40, to...@tuxteam.de wrote: >> On Wed, Mar 28, 2018 at 08:18:24PM +0200, Mikhail Morfikov wrote: >>> On 2018-03-28 20:12, Sven Joachim wrote: >>> I really thought there's some easy way to

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-28 Thread Abdullah Ramazanoglu
On Wed, 28 Mar 2018 20:00:34 +0200 Mikhail Morfikov said: > Is there some variable that holds, for instance, a list of the > packages that apt wants to upgrade? In such way it would be easy to > set this up. On Wed, 28 Mar 2018 20:18:24 +0200 Mikhail Morfikov said: > But I will try to do something

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-28 Thread John Crawley (johnraff)
On 2018-03-29 03:40, to...@tuxteam.de wrote: I really thought there's some easy way to include user's scripts when you want to make some additional changes to the upgraded packages, but it looks like the apt mechanism is a little bit limited. But I will try to do something with the t

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-28 Thread John Crawley (johnraff)
On 2018-03-29 03:40, to...@tuxteam.de wrote: On Wed, Mar 28, 2018 at 08:18:24PM +0200, Mikhail Morfikov wrote: On 2018-03-28 20:12, Sven Joachim wrote: I really thought there's some easy way to include user's scripts when you want to make some additional changes to the upgraded packag

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-28 Thread Mikhail Morfikov
On 2018-03-28 21:25, David Wright wrote: > On Wed 28 Mar 2018 at 20:00:34 (+0200), Mikhail Morfikov wrote: >> On 2018-03-28 18:58, Andy Smith wrote: >>> On Wed, Mar 28, 2018 at 06:29:06PM +0200, Mikhail Morfikov wrote: Is there a way to pass some extra commands/script to apt/aptitude so when

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-28 Thread David Wright
On Wed 28 Mar 2018 at 20:00:34 (+0200), Mikhail Morfikov wrote: > On 2018-03-28 18:58, Andy Smith wrote: > > On Wed, Mar 28, 2018 at 06:29:06PM +0200, Mikhail Morfikov wrote: > >> Is there a way to pass some extra commands/script to apt/aptitude so when > >> the > >> firefox package is to be upgra

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-28 Thread tomas
..] > I really thought there's some easy way to include user's scripts when you want > to make some additional changes to the upgraded packages, but it looks like > the > apt mechanism is a little bit limited. But I will try to do something with the > trigger and see how that wi

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-28 Thread Mikhail Morfikov
you only need to include the triggers list and a postinst script > which manages the links. > > An alternative is to use the dpkg's post-invoke option, but that is > rather inefficient, since it will be run on every dpkg invocation and > not only when one of the packages which inte

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-28 Thread Sven Joachim
On 2018-03-28 19:46 +0200, Mikhail Morfikov wrote: > On 2018-03-28 19:29, Sven Joachim wrote: >> On 2018-03-28 18:29 +0200, Mikhail Morfikov wrote: >> >>> I have some packages, for instance firefox, which need a little bit of >>> customization from a user side. So basically when I install the new

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-28 Thread Mikhail Morfikov
On 2018-03-28 18:58, Andy Smith wrote: > Hi Mikhail, > > On Wed, Mar 28, 2018 at 06:29:06PM +0200, Mikhail Morfikov wrote: >> Is there a way to pass some extra commands/script to apt/aptitude so when the >> firefox package is to be upgraded, it would recreate the links automatically? > > I've nev

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-28 Thread Mikhail Morfikov
On 2018-03-28 19:29, Sven Joachim wrote: > On 2018-03-28 18:29 +0200, Mikhail Morfikov wrote: > >> I have some packages, for instance firefox, which need a little bit of >> customization from a user side. So basically when I install the new version >> of >> firefox, I also have to do some extra s

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-28 Thread Sven Joachim
On 2018-03-28 18:29 +0200, Mikhail Morfikov wrote: > I have some packages, for instance firefox, which need a little bit of > customization from a user side. So basically when I install the new version of > firefox, I also have to do some extra steps and so far I've been doing it > manually becaus

Re: How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-28 Thread Andy Smith
Hi Mikhail, On Wed, Mar 28, 2018 at 06:29:06PM +0200, Mikhail Morfikov wrote: > Is there a way to pass some extra commands/script to apt/aptitude so when the > firefox package is to be upgraded, it would recreate the links automatically? I've never tried it but looking at "man apt.conf" it seems

How to execute user's scripts when upgrading a certain package via apt/aptitude

2018-03-28 Thread Mikhail Morfikov
I have some packages, for instance firefox, which need a little bit of customization from a user side. So basically when I install the new version of firefox, I also have to do some extra steps and so far I've been doing it manually because I don't know any better way. In the case of firefox, I ha

Re: standards for post-installation scripts

2017-11-08 Thread Dan Hitt
On Wed, Nov 8, 2017 at 7:12 PM, Roberto C. Sánchez wrote: > On Wed, Nov 08, 2017 at 06:22:37PM -0800, Dan Hitt wrote: >> Does debian have guidelines or rules for post-installation scripts? >> >> I had trouble installing a package, and i would sort of like to file a >>

Re: standards for post-installation scripts

2017-11-08 Thread Roberto C . Sánchez
On Wed, Nov 08, 2017 at 06:22:37PM -0800, Dan Hitt wrote: > Does debian have guidelines or rules for post-installation scripts? > > I had trouble installing a package, and i would sort of like to file a > bug describing the behavior. But i'd only want to do this if there > w

standards for post-installation scripts

2017-11-08 Thread Dan Hitt
Does debian have guidelines or rules for post-installation scripts? I had trouble installing a package, and i would sort of like to file a bug describing the behavior. But i'd only want to do this if there were rules, and these rules were definite enough to make it very clear something i

Re: Recomended tutoial(s) on doing arithmetic in Bash scripts

2017-03-06 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Mar 06, 2017 at 03:50:06PM +0100, Jörg-Volker Peetz wrote: > Greg Wooledge wrote on 03/06/17 14:38: > > On Sun, Mar 05, 2017 at 05:25:49PM +0100, to...@tuxteam.de wrote: > >> If you need floating point numbers, bc (or dc) are your next stops. >

  1   2   3   4   5   6   7   8   9   10   >