▲ 1 r/CLI

want to use watch with my own command

[SOLVED] thanks to u/bac0on

i can now add this directly into .bash_aliases, or i can just paste the command into a terminal

alias las='
function what-changed() {
   find  -not  \( -path './snap/firefox/common' -prune \) -not \( -path './.cache'  -prune \) -type f -mmin -1  -printf "%C+ %p\n" | sort -n | tail -10
};
export -f what-changed && watch -x bash -c what-changed'

thanks for everyone's help.

[/SOLVED]

i have this command used to find recently changed files.

 find  -not  \( -path './snap/firefox/common' -prune \) -not \( -path './.cache'  -prune \) -type f -mmin -1  -printf "%C+ %p\n" | sort -n | tail -10

and i wanted to use watch to have it running in a window

however watch requires an executable, so i made a shell script that contained the command and then called

watch last_change

which works and allows me to make an alias for it .bash_aliases like

alias las='watch last_change'

all well and good

but then i had the bright idea to write this as a function instead of a script

function what-changed() {
     find  -not  \( -path './snap/firefox/common' -prune \) -not \( -path './.cache'  -prune \) -type f -mmin -1  -printf "%C+ %p\n" | sort -n | tail -10
};
watch what-changed

but it does not work.

watch says it can't find what-changed even tho it's right there and if i define this function in a console window, i can call it by itself and it will run.

but watch does not find it.

feels like i'm missing something simple, to help watch find it like it can find my script... something like a $PATH statement, but not that.

anyone see the issue?

reddit.com
u/skyfishgoo — 1 day ago
▲ 1 r/CLI

want to use watch with my own command

[SOLVED] thanks to u/bac0on

i can now add this directly into .bash_aliases, or i can just paste the command into a terminal


alias las='
function what-changed() {
   find  -not  \( -path './snap/firefox/common' -prune \) -not \( -path './.cache'  -prune \) -type f -mmin -1  -printf "%C+ %p\n" | sort -n | tail -10
};
export -f what-changed && watch -x bash -c what-changed'

thanks for everyone's help.

[/SOLVED]

i have this command used to find recently changed files.

 find  -not  \( -path './snap/firefox/common' -prune \) -not \( -path './.cache'  -prune \) -type f -mmin -1  -printf "%C+ %p\n" | sort -n | tail -10

and i wanted to use watch to have it running in a window

however watch requires an executable, so i made a shell script that contained the command and then called

watch last_change

which works and allows me to make an alias for it .bash_aliases like

alias las='watch last_change'

all well and good

but then i had the bright idea to write this as a function instead of a script

function what-changed() {
     find  -not  \( -path './snap/firefox/common' -prune \) -not \( -path './.cache'  -prune \) -type f -mmin -1  -printf "%C+ %p\n" | sort -n | tail -10
};
watch what-changed

but it does not work.

watch says it can't find what-changed even tho it's right there and if i define this function in a console window, i can call it by itself and it will run.

but watch does not find it.

feels like i'm missing something simple, to help watch find it like it can find my script... something like a $PATH statement, but not that.

anyone see the issue?

reddit.com
u/skyfishgoo — 1 day ago
▲ 1 r/CLI

want to use watch with my own command

[SOLVED] thanks to u/bac0on

i can now add this directly into .bash_aliases, or i can just paste the command into a terminal


alias las='
function what-changed() {
   find  -not  \( -path './snap/firefox/common' -prune \) -not \( -path './.cache'  -prune \) -type f -mmin -1  -printf "%C+ %p\n" | sort -n | tail -10
};
export -f what-changed && watch -x bash -c what-changed'

thanks for everyone's help.

[/SOLVED]

i have this command used to find recently changed files.

 find  -not  \( -path './snap/firefox/common' -prune \) -not \( -path './.cache'  -prune \) -type f -mmin -1  -printf "%C+ %p\n" | sort -n | tail -10

and i wanted to use watch to have it running in a window

however watch requires an executable, so i made a shell script that contained the command and then called

watch last_change

which works and allows me to make an alias for it .bash_aliases like

alias las='watch last_change'

all well and good

but then i had the bright idea to write this as a function instead of a script

function what-changed() {
     find  -not  \( -path './snap/firefox/common' -prune \) -not \( -path './.cache'  -prune \) -type f -mmin -1  -printf "%C+ %p\n" | sort -n | tail -10
};
watch what-changed

but it does not work.

watch says it can't find what-changed even tho it's right there and if i define this function in a console window, i can call it by itself and it will run.

but watch does not find it.

feels like i'm missing something simple, to help watch find it like it can find my script... something like a $PATH statement, but not that.

anyone see the issue?

reddit.com
u/skyfishgoo — 1 day ago
▲ 21 r/bash

want to use watch with my own command

[SOLVED] thanks to u/bac0on

i can now add this directly into .bash_aliases, or i can just paste the command into a terminal


alias las='
function what-changed() {
   find  -not  \( -path './snap/firefox/common' -prune \) -not \( -path './.cache'  -prune \) -type f -mmin -1  -printf "%C+ %p\n" | sort -n | tail -10
};
export -f what-changed && watch -x bash -c what-changed'

thanks for everyone's help.

[/SOLVED]

i have this command used to find recently changed files.

 find  -not  \( -path './snap/firefox/common' -prune \) -not \( -path './.cache'  -prune \) -type f -mmin -1  -printf "%C+ %p\n" | sort -n | tail -10

and i wanted to use watch to have it running in a window

however watch requires an executable, so i made a shell script that contained the command and then called

watch last_change

which works and allows me to make an alias for it .bash_aliases like

alias las='watch last_change'

all well and good

but then i had the bright idea to write this as a function instead of a script

function what-changed() {
     find  -not  \( -path './snap/firefox/common' -prune \) -not \( -path './.cache'  -prune \) -type f -mmin -1  -printf "%C+ %p\n" | sort -n | tail -10
};
watch what-changed

but it does not work.

watch says it can't find what-changed even tho it's right there and if i define this function in a console window, i can call it by itself and it will run.

but watch does not find it.

feels like i'm missing something simple, to help watch find it like it can find my script... something like a $PATH statement, but not that.

anyone see the issue?

reddit.com
u/skyfishgoo — 3 days ago
▲ 3 r/XC40_Recharge+1 crossposts

anyone changed the front tires from235/45R20 to 245/45R20

looking to quiet the ride on these ginormous 20" wheels.

wondering if anyone has tried fitting the wider tire and did it improve the road noise the comes thru the front suspension?

lowered the PSI from factory 41PSI to 36PSI and it makes a big difference, but i fear the tires will wear faster.

the 8.0 wide wheel actually recommends the wider tire but for some reason the OEM tire is narrower (probably for cost&efficiency reasons), but wider tires will absorb the impacts better than the narrow tires, so i'm curious if anyone has done this.

reddit.com
u/skyfishgoo — 19 days ago
▲ 4 r/XC40_Recharge+1 crossposts

Curb rash on the 20" rims

so easy to get this wrong... these wheels are very unforgiving.

what are the options?

do you just live with it?

reddit.com
u/skyfishgoo — 1 month ago

OBD II tool recommendations for this EV?

Who is using an OBD II reader and diagnostic tool with their Recharge EV?

which reader / software combination are you using, or are you using a tablet with a built in screen?

what sorts of data and/or performance tweaks can you make using your system?

specifically interested in traction battery SoH reports and 12V battery monitoring.

reddit.com
u/skyfishgoo — 2 months ago
▲ 7 r/XC40_Recharge+1 crossposts

Battery Preconditioning Before DC Charging - What, How, When?

what does it even do, and does it really save me time?

so if i'm on a road trip and the google recommends a charging stop to me because my SoC won't get to to the end, does that precondition the battery before i arrive?

if i program in my own charging destination by clicking on the screen icon for the stations it shows, does that precondition the battery before i arrive?

if i search the google for a charging station by location or name, even tho is it not showing up as one of the icons for charging, does that precondition the battery before i arrive?

if i use the APP to find a charging location and drill down thru the black circles to where it presents me with a list of charging stations by ID#, does that precondition the battery before i arrive?

should i even bother worrying about any of this?

reddit.com
u/skyfishgoo — 2 months ago

Volvo roadside assistance experience

not good.

the car would not take a charge and they were unable to do any troubleshooting over the phone... it seems the only purpose for these operators is to assign a tow truck work order.

what's worse is they apparently pay towing companies so little they will not take the job, or when they do, they try to scam another towing company into taking part of the job... the whole thing just seemed a debacle from the outset and 3rd world in character.

first we waited hours for nothing to happen, and eventually decided to get a room in a nearby motel for the nite, and was assured via text message that a driver would be there the next morning at 9am.

got a call from an earnest sounding guy said he was on his way from city about 60miles away and that he would be there by 11am... (sure sure, at this point).

finally a truck arrives at around 12pm but the driver says he can't pick up the car without the person who called in the tow to be present... the name he had on his ticket was not my name.

lots of furious calling and texting later and it turns out the towing company from 60mi away tried to get this guy to bring the car to them, so they could complete the tow, but since he won't do that (for free?) they will NOW send their guy to pick up the car and it will be another 2hrs with traffic.

i asked the driver who was present how much he would charge me to tow the car to the dealer (130mi away) and he quoted me $1600 cash/credit (red flags everywhere).

at this point an angel descended and offered to put the tow on their AAA Premium card because he overheard our frustration and how we had pets at home that needed us to get back.

that person has my undying gratitude and the first thing i did when we got back was upgrade my AAA membership to Premium because Volvo's roadside assistance is for shit (the 2nd thing i did was send him some money).

do not put your life in the hands of Volvo roadside assistance, they don't care.

reddit.com
u/skyfishgoo — 2 months ago
▲ 3 r/XC40_Recharge+1 crossposts

Unable to charge with 5.1.17 update pending

First road trip in a new (to me) 2024 xc40 recharge, or any EV really.

ignored pending update notifications in the car and on the app because we were headed out that morning and didn't have time for the 90mins required for the update.

unfortunately, at our first stop the car would not accept a DCFS and we tried several different charges on several different networks, none of them would work.

pluged in the cord and the the process looks like it was starting (heard the latch), but then a red light at the charge port and red ERROR warning on the instrument panel.

eventually had to call for volvo roadside assistance to come and tow the vehicle back to a dealer (that was a whole other ordeal i won't go into here).

when back at the dealer, they managed to update the software and since then the vehicle seems to be charging fine.

my question is, is this normal?

do pending software updates prevent the car from charging?

reddit.com
u/skyfishgoo — 2 months ago
▲ 9 r/leftist+1 crossposts

what is a good gift for a graduating business major?

serious question:

for someone just beginning their life as a business school graduate, what would be the most impactful graduation present to help ensure they do not become like the other "suits" who have ruined this planet.

really worried that capitalism and the business school teachings that feed it are part of the problem and looking for anything that can possibly change it.

serious answers only, please.

imagine it was your daughter graduating with a business degree.

reddit.com
u/skyfishgoo — 2 months ago
▲ 74 r/Zappa+1 crossposts

frank zappa was a mench

this interview about democracy is so ahead of the times... the purchase of access to power he describes is common place today in BOTH parties.

youtube.com
u/skyfishgoo — 3 months ago

SoH Cert 98% but range est at 100% is only 220mi

this on a used 2024 AWD...

someone make it make sense, because these numbers don't jive (should be loser to 250mi).

which one to believe?

is this battery OK?

is there some other piece of info missing?

reddit.com
u/skyfishgoo — 3 months ago