Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and appears to be fixed. Will keep monitoring.


computers / alt.os.linux.mint / script no longer workin

SubjectAuthor
* script no longer workinpinnerite
+* Re: script no longer workinChris Elvidge
|`* Re: script no longer workinpinnerite
| +* Re: script no longer workinSump
| |`- Re: script no longer workinBig Al
| `- Re: script no longer workinyossarian
+* Re: script no longer workinBig Al
|`* Re: script no longer workinBig Al
| `- Re: script no longer workinPaul
`- Re: script no longer workinPaul

1
script no longer workin

<20240321171329.8f9c0139f4f53bc135ad0e4d@gmail.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7960&group=alt.os.linux.mint#7960

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pinner...@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: script no longer workin
Date: Thu, 21 Mar 2024 17:13:29 +0000
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <20240321171329.8f9c0139f4f53bc135ad0e4d@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Injection-Info: dont-email.me; posting-host="98d275c9f26dcc1e071c083d54a2f834";
logging-data="2452327"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Xe4GU/69CE7iXvP2L75DHNKr+qFd2hv0="
Cancel-Lock: sha1:Trp0lHOB50/YzfBp25s4Zsgrbcs=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: pinnerite - Thu, 21 Mar 2024 17:13 UTC

This is a single active line that generates the signature at the foot
of this message or rather it used to.

awk -F= '/PRETTY/ {print $2}' /etc/os-release | sed "s/\"//g", uname -r
cinnamon --version > /signature_line.txt

Since moving to a new machine and updating to Mint 21.3 it now generates this:

ed (GNU sed) 4.8
Packaged by Debian
Copyright © 2020 Free Software Foundation, Inc.
Licence GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jay Fenlason, Tom Lord, Ken Pizzini,
Paolo Bonzini, Jim Meyering, and Assaf Gordon.

This sed program was built with SELinux support.
SELinux is disabled on this system.

GNU sed home page: <https://www.gnu.org/software/sed/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.
E-mail bug reports to: <bug-sed@gnu.org>.

What might have changed?

Alan

--
Linux Mint 21.3 kernel version 5.15.0-100-generic Cinnamon 6.0.4
AMD Phenom II x4 955 CPU 16Gb Dram 2TB Barracuda

Re: script no longer workin

<uthsni$2bpg8$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7964&group=alt.os.linux.mint#7964

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chr...@mshome.net (Chris Elvidge)
Newsgroups: alt.os.linux.mint
Subject: Re: script no longer workin
Date: Thu, 21 Mar 2024 18:02:25 +0000
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <uthsni$2bpg8$1@dont-email.me>
References: <20240321171329.8f9c0139f4f53bc135ad0e4d@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Mar 2024 18:02:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f0cce39d0000905526eb11ca1513e05b";
logging-data="2483720"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NrR7HvSc+4B2rkymc6wo1Gi8vR9EPi5w="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:vIvt9vCb9vLZRY2+IfMkG0SkD30=
Content-Language: en-GB
In-Reply-To: <20240321171329.8f9c0139f4f53bc135ad0e4d@gmail.com>
 by: Chris Elvidge - Thu, 21 Mar 2024 18:02 UTC

On 21/03/2024 at 17:13, pinnerite wrote:
> This is a single active line that generates the signature at the foot
> of this message or rather it used to.
>
> awk -F= '/PRETTY/ {print $2}' /etc/os-release | sed "s/\"//g", uname -r
> cinnamon --version > /signature_line.txt
>
> Since moving to a new machine and updating to Mint 21.3 it now generates this:
>
> ed (GNU sed) 4.8
> Packaged by Debian
> Copyright © 2020 Free Software Foundation, Inc.
> Licence GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> Written by Jay Fenlason, Tom Lord, Ken Pizzini,
> Paolo Bonzini, Jim Meyering, and Assaf Gordon.
>
> This sed program was built with SELinux support.
> SELinux is disabled on this system.
>
> GNU sed home page: <https://www.gnu.org/software/sed/>.
> General help using GNU software: <https://www.gnu.org/gethelp/>.
> E-mail bug reports to: <bug-sed@gnu.org>.
>
> What might have changed?
>
> Alan
>

Comma should be semicolon?
Try tr -d '"' instead of sed?

--
Chris Elvidge, England
I WILL NOT SQUEAK CHALK

Re: script no longer workin

<utht5v$2bsf7$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7965&group=alt.os.linux.mint#7965

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ala...@invalid.com (Big Al)
Newsgroups: alt.os.linux.mint
Subject: Re: script no longer workin
Date: Thu, 21 Mar 2024 14:10:05 -0400
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <utht5v$2bsf7$1@dont-email.me>
References: <20240321171329.8f9c0139f4f53bc135ad0e4d@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Mar 2024 18:10:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="eed60007821b3a39fddb8e4af8ae61c4";
logging-data="2486759"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cHLiB47jQDOgIgMTFajXtQjozaTbd8rA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:5+eqn7XYhkjlEiM/Q4UkYLe60Y8=
Content-Language: en-US
In-Reply-To: <20240321171329.8f9c0139f4f53bc135ad0e4d@gmail.com>
 by: Big Al - Thu, 21 Mar 2024 18:10 UTC

On 3/21/24 01:13 PM, pinnerite wrote:
> This is a single active line that generates the signature at the foot
> of this message or rather it used to.
>
> awk -F= '/PRETTY/ {print $2}' /etc/os-release | sed "s/\"//g", uname -r
> cinnamon --version > /signature_line.txt
>
> Since moving to a new machine and updating to Mint 21.3 it now generates this:
>
> ed (GNU sed) 4.8
> Packaged by Debian
> Copyright © 2020 Free Software Foundation, Inc.
> Licence GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> Written by Jay Fenlason, Tom Lord, Ken Pizzini,
> Paolo Bonzini, Jim Meyering, and Assaf Gordon.
>
> This sed program was built with SELinux support.
> SELinux is disabled on this system.
>
> GNU sed home page: <https://www.gnu.org/software/sed/>.
> General help using GNU software: <https://www.gnu.org/gethelp/>.
> E-mail bug reports to: <bug-sed@gnu.org>.
>
> What might have changed?
>
> Alan
>
First the "awk -F= 'PRETTY {print $2}' etc/os-release " does not output anything. Even changing to
/etc/os-release fails.
Thus the sed has no option but to dump a help and about text to the screen.

I use this:
#!/bin/bash
echo `awk -F= '/PRETTY/ {print $2}' /etc/os-release | sed "s/\"//g"`" "`cinnamon --version`"
Al" > /home/alan/.thunderbird/Signature.txt

to do my sig. I run it just once a new OS comes along.
Does your script have the #!/bin/bash on line one?
--
Linux Mint 21.3 Cinnamon 6.0.4
Al

Re: script no longer workin

<uthtmp$2bsfq$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7966&group=alt.os.linux.mint#7966

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ala...@invalid.com (Big Al)
Newsgroups: alt.os.linux.mint
Subject: Re: script no longer workin
Date: Thu, 21 Mar 2024 14:19:05 -0400
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <uthtmp$2bsfq$1@dont-email.me>
References: <20240321171329.8f9c0139f4f53bc135ad0e4d@gmail.com>
<utht5v$2bsf7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Mar 2024 18:19:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="eed60007821b3a39fddb8e4af8ae61c4";
logging-data="2486778"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Vq9d1QWYHbBONDHUOTlkiO/xdUlXPP0g="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ifgWNbWTQ8Q1YJYGFcqph2IqZFw=
Content-Language: en-US
In-Reply-To: <utht5v$2bsf7$1@dont-email.me>
 by: Big Al - Thu, 21 Mar 2024 18:19 UTC

On 3/21/24 02:10 PM, Big Al wrote:
> On 3/21/24 01:13 PM, pinnerite wrote:
>> This is a single active line that generates the signature at the foot
>> of this message or rather it used to.
>>
>> awk -F= '/PRETTY/ {print $2}' /etc/os-release | sed "s/\"//g", uname -r
>> cinnamon --version  > /signature_line.txt
>>
>> Since moving to a new machine and updating to Mint 21.3 it now generates this:
>>
>> ed (GNU sed) 4.8
>> Packaged by Debian
>> Copyright © 2020 Free Software Foundation, Inc.
>> Licence GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
>> This is free software: you are free to change and redistribute it.
>> There is NO WARRANTY, to the extent permitted by law.
>>
>> Written by Jay Fenlason, Tom Lord, Ken Pizzini,
>> Paolo Bonzini, Jim Meyering, and Assaf Gordon.
>>
>> This sed program was built with SELinux support.
>> SELinux is disabled on this system.
>>
>> GNU sed home page: <https://www.gnu.org/software/sed/>.
>> General help using GNU software: <https://www.gnu.org/gethelp/>.
>> E-mail bug reports to: <bug-sed@gnu.org>.
>>
>> What might have changed?
>>
>> Alan
>>
> First the "awk -F= 'PRETTY {print $2}' etc/os-release " does not output anything.  Even changing to
> /etc/os-release fails.
> Thus the sed has no option but to dump a help and about text to the screen.
>
> I use this:
> #!/bin/bash
> echo `awk -F= '/PRETTY/ {print $2}' /etc/os-release | sed "s/\"//g"`" "`cinnamon --version`"
> Al" > /home/alan/.thunderbird/Signature.txt
>
> to do my sig.  I run it just once a new OS comes along.
> Does your script have the #!/bin/bash on line one?Interesting. I copied you text but when pasted into a shell, the /PRETTY/ has the /'s removed.
--
Linux Mint 21.3 Cinnamon 6.0.4
Al

Re: script no longer workin

<20240321191129.0bc5f8d48a10d73eeea1f695@gmail.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7967&group=alt.os.linux.mint#7967

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pinner...@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: Re: script no longer workin
Date: Thu, 21 Mar 2024 19:11:29 +0000
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <20240321191129.0bc5f8d48a10d73eeea1f695@gmail.com>
References: <20240321171329.8f9c0139f4f53bc135ad0e4d@gmail.com>
<uthsni$2bpg8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Injection-Info: dont-email.me; posting-host="98d275c9f26dcc1e071c083d54a2f834";
logging-data="2517386"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Dxzfso057EfmW5rtZ7IhhgrT83Jn3H3s="
Cancel-Lock: sha1:Tsc4OUpkZ+TL4E2iTaYN2Oh4BYI=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: pinnerite - Thu, 21 Mar 2024 19:11 UTC

On Thu, 21 Mar 2024 18:02:25 +0000
Chris Elvidge <chris@mshome.net> wrote:

> On 21/03/2024 at 17:13, pinnerite wrote:
> > This is a single active line that generates the signature at the foot
> > of this message or rather it used to.
> >
> > awk -F= '/PRETTY/ {print $2}' /etc/os-release | sed "s/\"//g", uname -r
> > cinnamon --version > /signature_line.txt
> >
> > Since moving to a new machine and updating to Mint 21.3 it now generates this:
> >
> > ed (GNU sed) 4.8
> > Packaged by Debian
> > Copyright © 2020 Free Software Foundation, Inc.
> > Licence GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
> > This is free software: you are free to change and redistribute it.
> > There is NO WARRANTY, to the extent permitted by law.
> >
> > Written by Jay Fenlason, Tom Lord, Ken Pizzini,
> > Paolo Bonzini, Jim Meyering, and Assaf Gordon.
> >
> > This sed program was built with SELinux support.
> > SELinux is disabled on this system.
> >
> > GNU sed home page: <https://www.gnu.org/software/sed/>.
> > General help using GNU software: <https://www.gnu.org/gethelp/>.
> > E-mail bug reports to: <bug-sed@gnu.org>.
> >
> > What might have changed?
> >
> > Alan
> >
>
> Comma should be semicolon?
> Try tr -d '"' instead of sed?
>
You may be right but I found a solution before i could try it.
In case anyone wants to try it. Here is the full script:

#! /bin/bash
# mint=$(awk -F= '/PRETTY/ {print $2}' /etc/os-release | sed "s/\"//g" )
# echo $mint
ktext="kernel version"
mversion=$(uname -r)
# echo $ktext $mversion
cmn=$(cinnamon --version)
echo $mint $ktext $mversion $cmn$'\n'AMD Ryzen 7 7700, Radeon RX 6600, 32GB DDR5, 1TB SSD, 2TB Barracuda > /home/alan/.config/sylpheed/sylpheed_signature.txt

Thanks, Alan

--
Linux Mint 21.3 kernel version 5.15.0-101-generic Cinnamon 6.0.4
AMD Ryzen 7 7700, Radeon RX 6600, 32GB DDR5, 1TB SSD, 2TB Barracuda

Re: script no longer workin

<uti1ff$2cvqa$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7968&group=alt.os.linux.mint#7968

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.os.linux.mint
Subject: Re: script no longer workin
Date: Thu, 21 Mar 2024 15:23:25 -0400
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <uti1ff$2cvqa$1@dont-email.me>
References: <20240321171329.8f9c0139f4f53bc135ad0e4d@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 21 Mar 2024 19:23:27 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="668ebf28c2c5a88641b878b6390f9542";
logging-data="2522954"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tZRiIQ8TAnWHqa9nfiP8YxR5s2eggN70="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:+I7GhBodFIIVxZnEFpHkgf5pNDM=
In-Reply-To: <20240321171329.8f9c0139f4f53bc135ad0e4d@gmail.com>
Content-Language: en-US
 by: Paul - Thu, 21 Mar 2024 19:23 UTC

On 3/21/2024 1:13 PM, pinnerite wrote:
> awk -F= '/PRETTY/ {print $2}' /etc/os-release | sed "s/\"//g", uname -r, cinnamon --version > signature_line.txt

Paste this into a terminal, to see the immediate output.

You can redirect this.

awk 'BEGIN { dummy = ("/usr/bin/uname -r" | getline) >0
str = sprintf(" Kernel version %s",$1)
dummy = ("/usr/bin/cinnamon --version" | getline) >0
str = str sprintf(" %s %s",$1,$2)
FS="\"" }
/PRETTY/ {print $2 str}' /etc/os-release

*******

Output should be:

Linux Mint 21.3 Kernel version 5.15.0-100-generic Cinnamon 6.0.4

That does not use SED.

Paul

Re: script no longer workin

<uti2u5$2dars$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7969&group=alt.os.linux.mint#7969

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.os.linux.mint
Subject: Re: script no longer workin
Date: Thu, 21 Mar 2024 15:48:20 -0400
Organization: A noiseless patient Spider
Lines: 90
Message-ID: <uti2u5$2dars$1@dont-email.me>
References: <20240321171329.8f9c0139f4f53bc135ad0e4d@gmail.com>
<utht5v$2bsf7$1@dont-email.me> <uthtmp$2bsfq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Mar 2024 19:48:22 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="668ebf28c2c5a88641b878b6390f9542";
logging-data="2534268"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19a07sXVlYBMs4VT7YULkduqckMS8wsF/A="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:iAZHuIXuUElRyQaW1bpPpFKh+C0=
In-Reply-To: <uthtmp$2bsfq$1@dont-email.me>
Content-Language: en-US
 by: Paul - Thu, 21 Mar 2024 19:48 UTC

On 3/21/2024 2:19 PM, Big Al wrote:
> On 3/21/24 02:10 PM, Big Al wrote:
>> On 3/21/24 01:13 PM, pinnerite wrote:
>>> This is a single active line that generates the signature at the foot
>>> of this message or rather it used to.
>>>
>>> awk -F= '/PRETTY/ {print $2}' /etc/os-release | sed "s/\"//g", uname -r
>>> cinnamon --version  > /signature_line.txt
>>>
>>> Since moving to a new machine and updating to Mint 21.3 it now generates this:
>>>
>>> ed (GNU sed) 4.8
>>> Packaged by Debian
>>> Copyright © 2020 Free Software Foundation, Inc.
>>> Licence GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
>>> This is free software: you are free to change and redistribute it.
>>> There is NO WARRANTY, to the extent permitted by law.
>>>
>>> Written by Jay Fenlason, Tom Lord, Ken Pizzini,
>>> Paolo Bonzini, Jim Meyering, and Assaf Gordon.
>>>
>>> This sed program was built with SELinux support.
>>> SELinux is disabled on this system.
>>>
>>> GNU sed home page: <https://www.gnu.org/software/sed/>.
>>> General help using GNU software: <https://www.gnu.org/gethelp/>.
>>> E-mail bug reports to: <bug-sed@gnu.org>.
>>>
>>> What might have changed?
>>>
>>> Alan
>>>
>> First the "awk -F= 'PRETTY {print $2}' etc/os-release " does not output anything.  Even changing to /etc/os-release fails.

Be aware that at least one editor, now has an "autocompletion" feature,
which completely destroys muscle memory, and is a giant fuckup. TURN THAT OFF.
That's how things like slashes and quotes are getting destroyed.

The command line version of field separator seems to work with these two formats.

awk -F=
awk -F"="

and in some cases, you need quotes so there's no mistake about
interpretation of potential backslash escaping.

The field separator could have been made into the double-quote character,
removing the double-quote which is not desired.

$ awk -F= '/PRETTY/ {print $2}' /etc/os-release

"Linux Mint 21.3"

$ awk -F"\"" '/PRETTY/ {print $2}' /etc/os-release

Linux Mint 21.3

Naturally, the thing relies on the specifics of the
format used today, so it's brittle towards changes.

*******

Inlining other bits and pieces, is a lot more ugly.

awk 'BEGIN { dummy = ("/usr/bin/uname -r" | getline) >0
str = sprintf(" Kernel version %s",$1)
dummy = ("/usr/bin/cinnamon --version" | getline) >0
str = str sprintf(" %s %s",$1,$2)
FS="\"" }
/PRETTY/ {print $2 str}' /etc/os-release

but at least that no longer uses SED.

If the program instead pulled the script inside a file, as in

$ awk -f some.awk /etc/os-release

then the field separator can be pulled inside the some.awk file.

BEGIN {
FS = "\""
}

I don't think it would eat F=" for example.

Paul

Re: script no longer workin

<me7pvit5o08k59p7mou083c6p7t488kn66@4ax.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7970&group=alt.os.linux.mint#7970

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: sumpus...@outlook.com (Sump)
Newsgroups: alt.os.linux.mint
Subject: Re: script no longer workin
Date: Thu, 21 Mar 2024 20:57:06 +0000
Organization: Dazed and Confused - in Wilderness
Lines: 33
Message-ID: <me7pvit5o08k59p7mou083c6p7t488kn66@4ax.com>
References: <20240321171329.8f9c0139f4f53bc135ad0e4d@gmail.com> <uthsni$2bpg8$1@dont-email.me> <20240321191129.0bc5f8d48a10d73eeea1f695@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="cecd83fb61b35a4a465f0e76dee7dcac";
logging-data="2566058"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rsjzT9+5rMwCYgP46yLia9jgYyvnY9hU="
Cancel-Lock: sha1:iq4n5p9vIDF9rtez9ruxlrTA8YM=
X-Newsreader: Forte Agent 5.00/32.1171
X-No-Archive: Yes
 by: Sump - Thu, 21 Mar 2024 20:57 UTC

On Thu, 21 Mar 2024 19:11:29 +0000, pinnerite <pinnerite@gmail.com> wrote:

>You may be right but I found a solution before i could try it.
>In case anyone wants to try it. Here is the full script:
>
>#! /bin/bash
>#
>mint=$(awk -F= '/PRETTY/ {print $2}' /etc/os-release | sed "s/\"//g" )
># echo $mint
>ktext="kernel version"
>mversion=$(uname -r)
># echo $ktext $mversion
>cmn=$(cinnamon --version)
>echo $mint $ktext $mversion $cmn$'\n'AMD Ryzen 7 7700, Radeon RX 6600, 32GB DDR5, 1TB SSD, 2TB Barracuda > /home/alan/.config/sylpheed/sylpheed_signature.txt
>
>Thanks, Alan

Under bash

mwp@mwp-desktop:~$ echo -e `awk -F= '/PRETTY/ {print $2}' /etc/os-release | sed 's/\"//g'` kernel version:`uname -r`\\n`xfce4-about --version`\\nAMD Ryzen 7 7700, Radeon RX 6600....>~/.config/t.txt
mwp@mwp-desktop:~$ echo ~/.config/t.txt
/home/mwp/.config/t.txt
mwp@mwp-desktop:~$ cat ~/.config/t.txt
Linux Mint 21.3 kernel version:5.15.0-101-generic
xfce4-about 4.18.2 (Xfce 4.18) Copyright (c) 2008-2023 The Xfce development team. All rights reserved. Please report bugs to <https://gitlab.xfce.org/xfce/libxfce4ui/-/issues>.
AMD Ryzen 7 7700, Radeon RX 6600....
mwp@mwp-desktop:~$

Tweak as required.

Seems xfce4-about is noisy!
--
Sump

Re: script no longer workin

<uti7kg$2ebn4$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7971&group=alt.os.linux.mint#7971

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ala...@invalid.com (Big Al)
Newsgroups: alt.os.linux.mint
Subject: Re: script no longer workin
Date: Thu, 21 Mar 2024 17:08:32 -0400
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <uti7kg$2ebn4$1@dont-email.me>
References: <20240321171329.8f9c0139f4f53bc135ad0e4d@gmail.com>
<uthsni$2bpg8$1@dont-email.me>
<20240321191129.0bc5f8d48a10d73eeea1f695@gmail.com>
<me7pvit5o08k59p7mou083c6p7t488kn66@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Mar 2024 21:08:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7482d3a4146019d2d67a7d1ca99807b5";
logging-data="2567908"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PBZ12Esk+DEhjWRcPLm+Txs/QwrnYZso="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8on4+PhNqSKXDNpH8RRMGna8e/w=
Content-Language: en-US
In-Reply-To: <me7pvit5o08k59p7mou083c6p7t488kn66@4ax.com>
 by: Big Al - Thu, 21 Mar 2024 21:08 UTC

On 3/21/24 04:57 PM, Sump wrote:
> On Thu, 21 Mar 2024 19:11:29 +0000, pinnerite <pinnerite@gmail.com> wrote:
>
>> You may be right but I found a solution before i could try it.
>> In case anyone wants to try it. Here is the full script:
>>
>> #! /bin/bash
>> #
>> mint=$(awk -F= '/PRETTY/ {print $2}' /etc/os-release | sed "s/\"//g" )
>> # echo $mint
>> ktext="kernel version"
>> mversion=$(uname -r)
>> # echo $ktext $mversion
>> cmn=$(cinnamon --version)
>> echo $mint $ktext $mversion $cmn$'\n'AMD Ryzen 7 7700, Radeon RX 6600, 32GB DDR5, 1TB SSD, 2TB Barracuda > /home/alan/.config/sylpheed/sylpheed_signature.txt
>>
>> Thanks, Alan
>
> Under bash
>
> mwp@mwp-desktop:~$ echo -e `awk -F= '/PRETTY/ {print $2}' /etc/os-release | sed 's/\"//g'` kernel version:`uname -r`\\n`xfce4-about --version`\\nAMD Ryzen 7 7700, Radeon RX 6600....>~/.config/t.txt
> mwp@mwp-desktop:~$ echo ~/.config/t.txt
> /home/mwp/.config/t.txt
> mwp@mwp-desktop:~$ cat ~/.config/t.txt
> Linux Mint 21.3 kernel version:5.15.0-101-generic
> xfce4-about 4.18.2 (Xfce 4.18) Copyright (c) 2008-2023 The Xfce development team. All rights reserved. Please report bugs to <https://gitlab.xfce.org/xfce/libxfce4ui/-/issues>.
> AMD Ryzen 7 7700, Radeon RX 6600....
> mwp@mwp-desktop:~$
>
> Tweak as required.
>
> Seems xfce4-about is noisy!
cinnamon --version I guess would replace the xfce4-about. Nice. Yes, a bit wordy !!👀
--
Linux Mint 21.3 Cinnamon 6.0.4 Kernel 6.5.0-26-generic
Al

Re: script no longer workin

<sw6mhjddryqh.10c668aynvt9h$.dlg@40tude.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7972&group=alt.os.linux.mint#7972

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: nom...@gmail.com (yossarian)
Newsgroups: alt.os.linux.mint
Subject: Re: script no longer workin
Date: Thu, 21 Mar 2024 23:59:44 +0100
Organization: M.A.D
Lines: 8
Message-ID: <sw6mhjddryqh.10c668aynvt9h$.dlg@40tude.net>
References: <20240321171329.8f9c0139f4f53bc135ad0e4d@gmail.com> <uthsni$2bpg8$1@dont-email.me> <20240321191129.0bc5f8d48a10d73eeea1f695@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net RM6uOJOBUfdgmG/rQaiaLAAGl2A8jin1fmLlmJJrCN4kgFUjdi
Cancel-Lock: sha1:tPL1a0FNo7IUU+dR78+mi5LkLvM= sha256:q3JcV23zSklRZbY5I3/ibiuyOkORFlCvprOIvfX+KH8=
User-Agent: 40tude_Dialog/2.0.15.1
X-Face: %WS*nT\f*&-Qn2@mm/:rG~/[#pax"}=M}"aHPqvqq-[kEKm4$"E+v>a55aDP
 by: yossarian - Thu, 21 Mar 2024 22:59 UTC

On Thu, 21 Mar 2024 19:11:29 +0000, pinnerite wrote:

> echo $mint $ktext $mversion $cmn$'\n'AMD Ryzen

This dollar after cmn is too much :)
--
Mint 21.2 Virginia, kernel 6.5.0-25-generic, Cinnamon 6.0.4
AMD Ryzen 7 5700G with Radeon Vega Graphics, 32GB of DRAM.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor