Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"You can have my Unix system when you pry it from my cold, dead fingers." -- Cal Keegan


computers / alt.os.linux.mint / Re: Re CRUN

SubjectAuthor
* Re CRUNJohn B.
`* Re: Re CRUNJohn B.
 +- Re: Re CRUNPaul
 `* Re: Re CRUNPaul
  `- Re: Re CRUNJohn B.

1
Re CRUN

<tc6ujih2ndf5odj0jtdbvumv7qe3me1pj1@4ax.com>

  copy mid

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

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: slocom...@gmail.com (John B.)
Newsgroups: alt.os.linux.mint
Subject: Re CRUN
Date: Mon, 30 Oct 2023 09:57:50 +0700
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <tc6ujih2ndf5odj0jtdbvumv7qe3me1pj1@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="6e94716ffad1265c7bafaf6c3fa7e6c4";
logging-data="312929"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ANROy4GcDApoljjeWr7JjR06ZqExHlgk="
User-Agent: ForteAgent/7.10.32.1212
Cancel-Lock: sha1:dvpTMB3OCq9cRsZHm8TcRNrYk64=
 by: John B. - Mon, 30 Oct 2023 02:57 UTC

I had a computer crash after several years and installed Linux Mint
20.

Previously I had the system set to run a computer test scene every
third day that the computer was turned on. Using crun (I think).

However with the /etc/cruntab of the version 20 I'm not having much
luck. Is it possible to schedule a printer test on every 3rd day the
computer is turned on with the newer crontab and if so can someone
post the actual coding necessary to do it?
--
Cheers,

John B.

Re: Re CRUN

<u07uji5bj6bfo3m02mf2tjrvc2eqs9e57g@4ax.com>

  copy mid

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

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: slocom...@gmail.com (John B.)
Newsgroups: alt.os.linux.mint
Subject: Re: Re CRUN
Date: Mon, 30 Oct 2023 10:00:40 +0700
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <u07uji5bj6bfo3m02mf2tjrvc2eqs9e57g@4ax.com>
References: <tc6ujih2ndf5odj0jtdbvumv7qe3me1pj1@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="6e94716ffad1265c7bafaf6c3fa7e6c4";
logging-data="312929"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/h18F5A0UMRuapJ/Ckm904ma2T316rif8="
User-Agent: ForteAgent/7.10.32.1212
Cancel-Lock: sha1:1Dt9fUJeSNmwGq5NdqR0li8L8pk=
 by: John B. - Mon, 30 Oct 2023 03:00 UTC

On Mon, 30 Oct 2023 09:57:50 +0700, John B. <slocombjb@gmail.com>
wrote:

>
>I had a computer crash after several years and installed Linux Mint
>20.
>
>Previously I had the system set to run a computer test scene every
>third day that the computer was turned on. Using crun (I think).
>
>However with the /etc/cruntab of the version 20 I'm not having much
>luck. Is it possible to schedule a printer test on every 3rd day the
>computer is turned on with the newer crontab and if so can someone
>post the actual coding necessary to do it?

Sorry for the misspelling - it is actually "cron".
--
Cheers,

John B.

Re: Re CRUN

<uhnk84$34fv0$1@paganini.bofh.team>

  copy mid

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

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.os.linux.mint
Subject: Re: Re CRUN
Date: Mon, 30 Oct 2023 02:59:15 -0400
Organization: To protect and to server
Message-ID: <uhnk84$34fv0$1@paganini.bofh.team>
References: <tc6ujih2ndf5odj0jtdbvumv7qe3me1pj1@4ax.com>
<u07uji5bj6bfo3m02mf2tjrvc2eqs9e57g@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 30 Oct 2023 06:59:16 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="3293152"; posting-host="RKnhd+qSw5kY0us4mjOZtg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha256:FDlhMTWx6b2Z80ZtywsL/6TSRPz+jq8DziGnrGh6+hU=
X-Notice: Filtered by postfilter v. 0.9.3
Content-Language: en-US
 by: Paul - Mon, 30 Oct 2023 06:59 UTC

On 10/29/2023 11:00 PM, John B. wrote:
> On Mon, 30 Oct 2023 09:57:50 +0700, John B. <slocombjb@gmail.com>
> wrote:
>
>>
>> I had a computer crash after several years and installed Linux Mint
>> 20.
>>
>> Previously I had the system set to run a computer test scene every
>> third day that the computer was turned on. Using crun (I think).
>>
>> However with the /etc/cruntab of the version 20 I'm not having much
>> luck. Is it possible to schedule a printer test on every 3rd day the
>> computer is turned on with the newer crontab and if so can someone
>> post the actual coding necessary to do it?
>
>
> Sorry for the misspelling - it is actually "cron".
>

You asked about this eighteen years ago ? Plus or minus on the ID.

https://www.linuxquestions.org/questions/linux-software-2/regular-print-job-using-cron-or-something-308167/

Some of these articles can have so much advertising, they rail the browser
and prevented using the scroll bar. There is nothing like the whir of fans
as a greeting to a web site. The person fitting the advertising to this
site, deserves a smack (had to kill browser).

https://www.fosslinux.com/106902/the-guide-to-mastering-cron-jobs-in-linux-mint.htm

This version of that site, isn't hitting the machine quite as hard.
You can actually scroll down in here.

https://web.archive.org/web/20230529174744/https://www.fosslinux.com/106902/the-guide-to-mastering-cron-jobs-in-linux-mint.htm

There are actually whole books on using cron, but they're thin books
and the fan doesn't whir quite as loudly. Cron might be a lightweight
book like the Termcap book was.

You can see an example here, where someone puts a "gate" in their script,
to abort the "driving the printer part", if the day spacing is wrong.

https://stackoverflow.com/questions/4549542/cron-job-every-three-days

0 0 */3 * * # Only approximate, due to month length. The 3 day spacing is not honoured.

You could set the cron to run daily at a particular hour,
then inside the script, check whether the date is the right value or not.
Someones first attempt, was this on that web page.

if (((date('j') - 1) % 3))
exit();

The people in that thread keep working on it.

"If you want it to be every 3 days from a specific date, use the following format:"

0 0 * * * bash -c '(( $(date +\%s -d "2019-01-01") / 86400 \% 3 == 0 )) && runmyjob.sh'

When I work with dangerous materials like that, inside the runmyjob.sh to begin
with, I might "touch" a file somewhere, which provides evidence of what date and time
the script ran. And not actually put the print command in there.

This page will give you some ideas as to how to make "evidence" files in your script.
By making unique filenames, the files will not collide and there should be an
evidence trail. Now, a guy could foul this up, but this should give you the
idea. You could do /bin/touch "$now" once you have crafted a format of
$now with minutes and seconds perhaps.

https://www.cyberciti.biz/faq/unix-linux-appleosx-bsd-shell-appending-date-to-filename/

################################################################################

Any time you do things like this, you want to be aware of the level of
elevation the thing runs at, and whether something bad could happen in there.
For example, if your script contents were

/bin/rm -Rf * # Don't do this in a cron job

then you'd want to know exactly what part of the machine that could wipe
out, based on whether it ran as you or it ran as root or it ran as a
cron-specific account (with certain group memberships). You can have an
account, with group memberships that allow the script to do certain things.

Mixing commands like "rm" in a script, must be done with utmost care.
You haven't lived as root, until one of your commands start erasing
other peoples files :-/ (Yes, I've done that. They gave me a very tiny Tshirt.)

Sending a print job is relatively safe, compared to issuing an "rm",
but a cron job could still create mounds of cruft if poorly crafted.

We came into a computer room one day and the floor was covered to a
depth of three feet, in output device paper :-) That's when you
realize unattended operation is a mistake, when working with yoyos.
Don't be that guy. The paper for the device, is like $200.00 a roll.
It's at times like that, you're glad the rolls are of limited size.

Defensive programming is the name of the game. the hardest part, is
likely getting anything at all to run. Once your thingy is running,
you can move on up to adding content to it. Something other than
touch somefilename

Paul

Re: Re CRUN

<uhnk4g$bgrj$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.os.linux.mint
Subject: Re: Re CRUN
Date: Mon, 30 Oct 2023 02:57:19 -0400
Organization: A noiseless patient Spider
Lines: 104
Message-ID: <uhnk4g$bgrj$1@dont-email.me>
References: <tc6ujih2ndf5odj0jtdbvumv7qe3me1pj1@4ax.com>
<u07uji5bj6bfo3m02mf2tjrvc2eqs9e57g@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 30 Oct 2023 06:57:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1460866f5f1e1c9dab1afe5333c3398f";
logging-data="377715"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198MpgbEPzLmRZ1P7ZgGeVwUohoLMTMimo="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:L4tme+CnxCyUty0jGi4h9EH0o54=
Content-Language: en-US
In-Reply-To: <u07uji5bj6bfo3m02mf2tjrvc2eqs9e57g@4ax.com>
 by: Paul - Mon, 30 Oct 2023 06:57 UTC

On 10/29/2023 11:00 PM, John B. wrote:
> On Mon, 30 Oct 2023 09:57:50 +0700, John B. <slocombjb@gmail.com>
> wrote:
>
>>
>> I had a computer crash after several years and installed Linux Mint
>> 20.
>>
>> Previously I had the system set to run a computer test scene every
>> third day that the computer was turned on. Using crun (I think).
>>
>> However with the /etc/cruntab of the version 20 I'm not having much
>> luck. Is it possible to schedule a printer test on every 3rd day the
>> computer is turned on with the newer crontab and if so can someone
>> post the actual coding necessary to do it?
>
>
> Sorry for the misspelling - it is actually "cron".
>

You asked about this eighteen years ago ? Plus or minus on the ID.

https://www.linuxquestions.org/questions/linux-software-2/regular-print-job-using-cron-or-something-308167/

Some of these articles can have so much advertising, they rail the browser
and prevented using the scroll bar. There is nothing like the whir of fans
as a greeting to a web site. The person fitting the advertising to this
site, deserves a smack (had to kill browser).

https://www.fosslinux.com/106902/the-guide-to-mastering-cron-jobs-in-linux-mint.htm

This version of that site, isn't hitting the machine quite as hard.
You can actually scroll down in here.

https://web.archive.org/web/20230529174744/https://www.fosslinux.com/106902/the-guide-to-mastering-cron-jobs-in-linux-mint.htm

There are actually whole books on using cron, but they're thin books
and the fan doesn't whir quite as loudly. Cron might be a lightweight
book like the Termcap book was.

You can see an example here, where someone puts a "gate" in their script,
to abort the "driving the printer part", if the day spacing is wrong.

https://stackoverflow.com/questions/4549542/cron-job-every-three-days

0 0 */3 * * # Only approximate, due to month length. The 3 day spacing is not honoured.

You could set the cron to run daily at a particular hour,
then inside the script, check whether the date is the right value or not.
Someones first attempt, was this on that web page.

if (((date('j') - 1) % 3))
exit();

The people in that thread keep working on it.

"If you want it to be every 3 days from a specific date, use the following format:"

0 0 * * * bash -c '(( $(date +\%s -d "2019-01-01") / 86400 \% 3 == 0 )) && runmyjob.sh'

When I work with dangerous materials like that, inside the runmyjob.sh to begin
with, I might "touch" a file somewhere, which provides evidence of what date and time
the script ran. And not actually put the print command in there.

This page will give you some ideas as to how to make "evidence" files in your script.
By making unique filenames, the files will not collide and there should be an
evidence trail. Now, a guy could foul this up, but this should give you the
idea. You could do /bin/touch "$now" once you have crafted a format of
$now with minutes and seconds perhaps.

https://www.cyberciti.biz/faq/unix-linux-appleosx-bsd-shell-appending-date-to-filename/

################################################################################

Any time you do things like this, you want to be aware of the level of
elevation the thing runs at, and whether something bad could happen in there.
For example, if your script contents were

/bin/rm -Rf * # Don't do this in a cron job

then you'd want to know exactly what part of the machine that could wipe
out, based on whether it ran as you or it ran as root or it ran as a
cron-specific account (with certain group memberships). You can have an
account, with group memberships that allow the script to do certain things.

Mixing commands like "rm" in a script, must be done with utmost care.
You haven't lived as root, until one of your commands start erasing
other peoples files :-/ (Yes, I've done that. They gave me a very tiny Tshirt.)

Sending a print job is relatively safe, compared to issuing an "rm",
but a cron job could still create mounds of cruft if poorly crafted.

We came into a computer room one day and the floor was covered to a
depth of three feet, in output device paper :-) That's when you
realize unattended operation is a mistake, when working with yoyos.
Don't be that guy. The paper for the device, is like $200.00 a roll.
It's at times like that, you're glad the rolls are of limited size.

Defensive programming is the name of the game. the hardest part, is
likely getting anything at all to run. Once your thingy is running,
you can move on up to adding content to it. Something other than
touch somefilename

Paul

Re: Re CRUN

<fs0vjil7u9kjrfo1604bs31nkqmf1i4706@4ax.com>

  copy mid

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

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: slocom...@gmail.com (John B.)
Newsgroups: alt.os.linux.mint
Subject: Re: Re CRUN
Date: Mon, 30 Oct 2023 17:21:11 +0700
Organization: A noiseless patient Spider
Lines: 116
Message-ID: <fs0vjil7u9kjrfo1604bs31nkqmf1i4706@4ax.com>
References: <tc6ujih2ndf5odj0jtdbvumv7qe3me1pj1@4ax.com> <u07uji5bj6bfo3m02mf2tjrvc2eqs9e57g@4ax.com> <uhnk4g$bgrj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="c8ac2e04dd405ee46f61ae93303967ff";
logging-data="445420"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hufn8ZuR5NHylUI5f6hh2WzlgDvvuHBk="
User-Agent: ForteAgent/7.10.32.1212
Cancel-Lock: sha1:/WzuaC5ohjgv5fck1z9IPsLatt8=
 by: John B. - Mon, 30 Oct 2023 10:21 UTC

On Mon, 30 Oct 2023 02:57:19 -0400, Paul <nospam@needed.invalid>
wrote:

>On 10/29/2023 11:00 PM, John B. wrote:
>> On Mon, 30 Oct 2023 09:57:50 +0700, John B. <slocombjb@gmail.com>
>> wrote:
>>
>>>
>>> I had a computer crash after several years and installed Linux Mint
>>> 20.
>>>
>>> Previously I had the system set to run a computer test scene every
>>> third day that the computer was turned on. Using crun (I think).
>>>
>>> However with the /etc/cruntab of the version 20 I'm not having much
>>> luck. Is it possible to schedule a printer test on every 3rd day the
>>> computer is turned on with the newer crontab and if so can someone
>>> post the actual coding necessary to do it?
>>
>>
>> Sorry for the misspelling - it is actually "cron".
>>
>
>You asked about this eighteen years ago ? Plus or minus on the ID.
>
> https://www.linuxquestions.org/questions/linux-software-2/regular-print-job-using-cron-or-something-308167/
>
Nope, wasn't me. "Bigjohn" is, from his post in the U.K. and I'm in
Thailand (:-)

>Some of these articles can have so much advertising, they rail the browser
>and prevented using the scroll bar. There is nothing like the whir of fans
>as a greeting to a web site. The person fitting the advertising to this
>site, deserves a smack (had to kill browser).
>
> https://www.fosslinux.com/106902/the-guide-to-mastering-cron-jobs-in-linux-mint.htm
>
>This version of that site, isn't hitting the machine quite as hard.
>You can actually scroll down in here.
>
> https://web.archive.org/web/20230529174744/https://www.fosslinux.com/106902/the-guide-to-mastering-cron-jobs-in-linux-mint.htm
>
>There are actually whole books on using cron, but they're thin books
>and the fan doesn't whir quite as loudly. Cron might be a lightweight
>book like the Termcap book was.
>
>You can see an example here, where someone puts a "gate" in their script,
>to abort the "driving the printer part", if the day spacing is wrong.
>
>https://stackoverflow.com/questions/4549542/cron-job-every-three-days
>
> 0 0 */3 * * # Only approximate, due to month length. The 3 day spacing is not honoured.
>
>You could set the cron to run daily at a particular hour,
>then inside the script, check whether the date is the right value or not.
>Someones first attempt, was this on that web page.
>
>if (((date('j') - 1) % 3))
> exit();
>
>The people in that thread keep working on it.
>
>"If you want it to be every 3 days from a specific date, use the following format:"
>
>0 0 * * * bash -c '(( $(date +\%s -d "2019-01-01") / 86400 \% 3 == 0 )) && runmyjob.sh'
>
>When I work with dangerous materials like that, inside the runmyjob.sh to begin
>with, I might "touch" a file somewhere, which provides evidence of what date and time
>the script ran. And not actually put the print command in there.
>
>This page will give you some ideas as to how to make "evidence" files in your script.
>By making unique filenames, the files will not collide and there should be an
>evidence trail. Now, a guy could foul this up, but this should give you the
>idea. You could do /bin/touch "$now" once you have crafted a format of
>$now with minutes and seconds perhaps.
>
>https://www.cyberciti.biz/faq/unix-linux-appleosx-bsd-shell-appending-date-to-filename/
>
>################################################################################
>
>Any time you do things like this, you want to be aware of the level of
>elevation the thing runs at, and whether something bad could happen in there.
>For example, if your script contents were
>
> /bin/rm -Rf * # Don't do this in a cron job
>
>then you'd want to know exactly what part of the machine that could wipe
>out, based on whether it ran as you or it ran as root or it ran as a
>cron-specific account (with certain group memberships). You can have an
>account, with group memberships that allow the script to do certain things.
>
>Mixing commands like "rm" in a script, must be done with utmost care.
>You haven't lived as root, until one of your commands start erasing
>other peoples files :-/ (Yes, I've done that. They gave me a very tiny Tshirt.)
>
>Sending a print job is relatively safe, compared to issuing an "rm",
>but a cron job could still create mounds of cruft if poorly crafted.
>
>We came into a computer room one day and the floor was covered to a
>depth of three feet, in output device paper :-) That's when you
>realize unattended operation is a mistake, when working with yoyos.
>Don't be that guy. The paper for the device, is like $200.00 a roll.
>It's at times like that, you're glad the rolls are of limited size.
>
>Defensive programming is the name of the game. the hardest part, is
>likely getting anything at all to run. Once your thingy is running,
>you can move on up to adding content to it. Something other than
>touch somefilename
>
> Paul
--
Cheers,

John B.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor