code logs -> 2019 -> Sun, 17 Nov 2019< code.20191116.log - code.20191118.log >
--- Log opened Sun Nov 17 00:00:38 2019
00:20 himi-cat [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
00:21 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Connection reset by peer]
01:09 * McMartin dives into a parallel universe autotools hell
01:09 * McMartin is, apparently, autotools doomguy?
02:02 Kindamoody is now known as Kindamoody[zZz]
02:04
<@Alek>
dammit, I don't wanna reinstall DOOM just yet...
02:13 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
02:27 Degi [Degi@Nightstar-m127mn.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
02:30 Degi [Degi@Nightstar-ufahbj.dyn.telefonica.de] has joined #code
04:57 Vorntastic [uid293981@Nightstar-2dc.p8m.184.192.IP] has joined #code
04:57 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
05:01 celticminstrel [celticminst@Nightstar-lbhgah.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:05
< Yossarian>
Huh?
06:05
< Yossarian>
$ cron
06:05
< Yossarian>
cron: can't open or create /var/run/crond.pid: Permission denied
06:05
< Yossarian>
$ sudo cron
06:05
< Yossarian>
cron: can't lock /var/run/crond.pid, otherpid may be 352: Resource temporarily unavailable
06:06
< Yossarian>
thought cron allowed non-superusers to schedule jobs
06:07
< Yossarian>
maybe it isn't set up in a specific .allow file or does it have something to do with systemd?
06:07
<&[R]>
You want to run crontab
06:07
<&[R]>
`crontab -e` specifically
06:09
< Yossarian>
opens /tmp/crontab.blbblblblb/crontab with what I presume is $EDITOR (it's vim)
06:09
<&[R]>
Either $EDITOR or $VISUAL (forget which has priority), falls back to vi (which is not vim)
06:10
< Yossarian>
visual I think
06:11
< Yossarian>
What do I want in crontab?
06:12
< Yossarian>
I have the manpage open, so, I'm not being lazy... or that lazy, at least, I'm reading
06:12
< Yossarian>
or maybe I need to be looking at man 5 crontab
06:13
<&[R]>
Yes
06:15
<&[R]>
https://termbin.com/hyvz <-- my work machine's crontab
06:15
< Yossarian>
so the crontab will have when, user, and user command
06:15
< Yossarian>
but what about cron.daily and cron.weekly?
06:16
<&[R]>
The crontab files will have when and user command, no user.
06:17
<&[R]>
Look at /etc/cron.d/
06:17
< Yossarian>
and what is the dow field?
06:17
<&[R]>
Sunday Monday Tuesday etc...
06:19
< Yossarian>
day of week, okay
06:20
< Yossarian>
your hourly line has min 30
06:20
< Yossarian>
but everything else asterix'd
06:21
<&[R]>
Right, because I want it to run every hour, every day, every month, but only one minute of that hour
06:21
< Yossarian>
intuition says that every 30 minutes it will run
06:22
<&[R]>
No, it will run at 0030 0130 0230 0330 0430 0530 etc...
06:22
<&[R]>
You're pattern matching against the current time
06:22
< Yossarian>
so it denotes the time on the clock
06:22
<&[R]>
Yes
06:23
<&[R]>
BTW, the crontab files in /etc/cron.d/ *do* need a user, so I was mistaken. HOWEVER, the crontab files made by `crontab -e` DO NOT.
06:24
< Yossarian>
the crontab files with crontab -e do they get saved somewhere that isn't /tmp/ after exiting the editor or...?
06:24
<&[R]>
I recommend using your user crontab file (IE: the one that `crontab -e` edits)
06:24
<&[R]>
Yes
06:24
<&[R]>
/var/spool/cron/
06:25
< Yossarian>
so lemme fill in some simple examples and I'll paste them and you can tell me if it looks right, sound decent?
06:27
<&[R]>
https://termbin.com/t438 <-- from vixiecron's crontab(5)
06:43
< Yossarian>
$ crontab -l
06:44
< Yossarian>
#MIN HOUR DAY MONTH DoW COMMAND
06:44
< Yossarian>
#* * * * * echo test >> /home/R/croncron
06:44
< Yossarian>
0 * * * * notify-send "It's a new hour!"
06:44 [R] [rstamer@genoce.org] has quit [Z-Lined: Killbot has judged you to be a spammer. Begone. (ID: 8UQZ3T8TUU)]
06:44 Yossarian [yoss@Nightstar-d7h8ki.org] has quit [Z-Lined: Killbot has judged you to be a spammer. Begone. (ID: 8UQZ3T8TUU)]
06:44
<&McMartin>
Oof.
06:44
<&McMartin>
TheWatcher: Killbot went rampant
06:44
<&McMartin>
Probably worth determining what it is about crontabs that makes it murdery
06:46
<~Vorntastic>
Argh. I don't have powers here
07:47 * McMartin manages to pummel Xcode into submission, more or less
07:48
<&McMartin>
Now I just need to throw around enough Perl to make it run on machines that aren't this one.
07:57 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
07:57 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
07:57 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
10:12 Kindamoody[zZz] is now known as Kindamoody
10:46 [R] [rstamer@Nightstar-d7h8ki.org] has joined #code
10:46 mode/#code [+ao [R] [R]] by ChanServ
10:47 Yossarian [yoss@Nightstar-d7h8ki.org] has joined #code
10:52
<@TheWatcher>
You triggered a rule in killbot that detects 30 or more consecutive non-alphanumeric characters
11:04 Emmy [Emmy@Nightstar-o9u.8m2.160.77.IP] has joined #code
11:41
<~Vorntastic>
How the hell is Fanfare Vagabontu video game music
12:05 Kindamoody is now known as Kindamoody|afk
12:25
<~Vorntastic>
Wrong channel
14:16 Degi [Degi@Nightstar-ufahbj.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
14:30 Degi [Degi@Nightstar-vpdnuo.dyn.telefonica.de] has joined #code
15:16 celticminstrel [celticminst@Nightstar-lbhgah.dsl.bell.ca] has joined #code
15:16 mode/#code [+o celticminstrel] by ChanServ
16:53 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
16:53 mode/#code [+qo Vornicus Vornicus] by ChanServ
17:36 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
17:53 Kindamoody|afk is now known as Kindamoody
17:54
<&[R]>
Okay, I definately 100% hate EFI
17:54
<&[R]>
So I updated my kernel right? Well, now I can't mount my esp partition, which means I can't push the new kernel onto it.
17:54
<&[R]>
AMAZING
18:50 Vorntastic [uid293981@Nightstar-2dc.p8m.184.192.IP] has quit [[NS] Quit: Connection closed for inactivity]
19:20
<@TheWatcher>
Awesome
20:26
<&McMartin>
I have a decent grasp of how the BIOS boot process works, but (U)EFI is still broadly a mystery to me
20:50
<&McMartin>
Does Perl have a primitive/single statement version of doing a substitutino on every line of a file or do I just write the two-statement while loop?
20:51
<&McMartin>
(I have a slightly unhealthy habit of relying on $_. I blame the 6502 asm code and the way every instruction sets the status flags.)
21:47
<@TheWatcher>
Are you /just/ doing the sub?
21:47
<@TheWatcher>
If so
21:48
<@TheWatcher>
#!/bin/env perl -pi.orig
21:48
<@TheWatcher>
s/foo/bar/;
21:48
<@TheWatcher>
That's your program
21:48
<@TheWatcher>
then invoke it as
21:49 Kindamoody is now known as Kindamoody|afk
21:49
<@TheWatcher>
something.pl <file1> [<file2> ...]
21:54
<@TheWatcher>
Ooops, should have been #!/bin/env -S perl -pi.orig
21:55
<&[R]>
/usr/bin/env
21:57 * TheWatcher shrug
22:00
<&[R]>
Of things that don't have /bin -> /usr/bin; only one UNIX has env in /bin/, everything else has it in /usr/bin/
22:03
<&McMartin>
No, I'd be doing it as part of a larger task
22:04 * McMartin is incorporating a shell script that repeatedly shells out to sed into a single Perl script that does all the work
22:04
<&McMartin>
(And then the shell script ultimately also does other work and then hands the final work to Perl. I want to make Perl do all the work so the tasks are all in one place)
22:10 * Emmy creates a 1000 line function for McMartin to do all those things with no particular order or separation of functionalities
22:10 * Emmy then erases all comments
22:10
< Emmy>
there you go.
22:12
<&McMartin>
This'll fit under 100 and likely under 50.
22:50 Emmy [Emmy@Nightstar-o9u.8m2.160.77.IP] has quit [Ping timeout: 121 seconds]
23:37 Degi [Degi@Nightstar-vpdnuo.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
23:42 Degi [Degi@Nightstar-s8ujou.dyn.telefonica.de] has joined #code
--- Log closed Mon Nov 18 00:00:39 2019
code logs -> 2019 -> Sun, 17 Nov 2019< code.20191116.log - code.20191118.log >

[ Latest log file ]