Day: July 24, 2025💾

🗺️ Maps 🖼️ Photos 📽️ Videos

Unix Jobs Control

Apparently, I didn’t know before I borrowed the book from work that if you forget to run a Unix process in the background with an &, you can pause it with Control-Z and put it in the background with ‘bg’.

It’s so simple and obvious but I was not as good at the bash shell ot managing processes as I’m now that I use it every day at work. I use all kinds of job control and sub-shells to run processes in paralell and manage the processes I’m running.

This webpage has some good info on Unix jobs control


Job control is used to run more than one command at a time. You can only have one command at a time running in the foreground, but you may have multiple commands running at the same time in the background. To run a command in the background, place an ampersand (&) at the end of your Unix command.

To find out what jobs/processes you currently have in the background, type jobs -l at the prompt and it will list the jobs and their statuses:

z123456@turing:~$ jobs -l
[1]  14971 Running                 ./loop &
[2]- 14972 Stopped (signal)        nano prog1.cpp
[3]+ 14978 Stopped                 ./loop2
z123456@turing:~$

The number inside the [ ] is the job number. The next number is the process identification number (PID) of the job. The next column tells us about the state of the job, and the last column is the name of the process. The + stands for the current job and the - stands for the previous job.

As you can see jobs 2 and 3 are stopped in the background and job 1, the program loop, is running in the background.

  • To stop a job running in the foreground and move it into the background, use ^Z (Ctrl-z)
  • You can use ^C (Ctrl-c)to kill a foreground job.
  • To bring job 2 into the foreground, type: fg %2
  • To start job 3 running in the background, type: bg %3
  • To kill job 1 type: kill -KILL %1 (or) kill -KILL 14971
  • To kill the current job, type: kill -KILL %
Map: Eagle Pond Trail
Map: Fox Lair Campsites
Map: Green Mountain National Forest North
Thematic Map: Coldest Day of the Year in NY State

Maybe I care more about being woke then I want admit 🏢

I still find it hard to believe that a few days ago I was at a Colonie Planning Board Meeting where the chair Steven Heider was very concerned that a proposed warehouse in Albany Pine Bush was woke enough – had enough different colors in the steel facade – to appeal to the town sensibilities. They were not concerned about the impact the warehouse had on real people’s lives – the lost Pine Bush, the traffic, or safety of the facility – just the color of steel on a warehouse.

Aesthetics, the root of being woke, is really an interesting concept. We all want beauty in our lives, we want the communities we live in be places that stimulate the mind through the use of color and style. The problem with woke is it goes no deeper then some paint. Inherit in the concept of woke is such materials are cheap and quickly made dated, a facade that covers over the real substantive problems in design or society at large.

I care about aesthetics a lot. I want the things I own to be beautiful and elegant, not just serve a utilitan purpose but give myself some joy. I can rant about how much I hate the look of vinyl siding and asphalt roofs – or talk about how superior tongue-and-groove board is to dry wall. But how much of it is really is aesthetics and not reality? Grant vinyl siding is so toxic if you’ve ever burned it, and it is designed to be used for a few years, crack and be damaged, and hauled off to the local dumping grounds. I want whatever vehicles and equipment I pay good money for to not look like crap, especially hen they are brand new.

The thing about being woke is there is some validity in it, even if it’s hard to admit it at first. Wokeness can be a sign of good bones underneath, it need not be completely shallow facade covering up rot underneath. Beauty does matter. I was actually pretty horrified at what I saw with all the wood rot at that house I looked at a year ago with vinyl siding, it looked nice at a distance with the white vinyl, but the siding below it had so much rot. Had the vinyl not been on it, maybe they would have replaced the rotted wood below it much sooner.