#garfield Logs

May 31 2022

#garfield Calendar

02:55 AM rue_bed: hahah
03:04 AM rue_bed: I been searching all over ali for silicone cups I can make those rolling actuators like disney did
03:04 AM rue_bed: I can just use the fingers from rubber gloves!
03:04 AM rue_bed: I'll get some silicone switch caps and try them too tho
03:04 AM rue_bed: hahah
08:40 AM rue_bed: morning
05:35 PM rue_mohr: Tom_L, ?
05:35 PM rue_mohr: - wake up
05:35 PM rue_mohr: - try injector
05:35 PM rue_mohr: - stilts
05:35 PM rue_mohr: - linear sensor
05:40 PM Tom_L: WHAT!
08:11 PM rue_mohr: step one done
08:11 PM rue_mohr: had a strange dream
08:13 PM Tom_L: another?
08:14 PM rue_mohr: ... I wonder what the last one was
08:14 PM rue_mohr: this one was that my shop was an extention of the grenhouse
08:14 PM rue_mohr: a tree fell on it and I had to repair the roof
08:14 PM rue_mohr: which I'd already done, but not taken off the patch
08:14 PM rue_mohr: I was stuck on the roof needing my impact driver
08:15 PM rue_mohr: trying to get ma to pass it to me
08:17 PM Tom_L: what file extension is a shell script?
08:17 PM Tom_L: and how do you execute one?
08:17 PM rue_mohr: maybe nothiing
08:17 PM rue_mohr: sometimes .sh
08:17 PM Tom_L: ok so how do you execute it?
08:18 PM rue_mohr: chmod 777 foo.sh
08:18 PM rue_mohr: ./foo.sh
08:18 PM Tom_L: is file=$1 a parameter passed to it?
08:18 PM Tom_L: that goes inside the .sh
08:18 PM rue_mohr: yes, I think
08:18 PM Tom_L: gonna try one
08:19 PM rue_mohr: #!/bin/bash
08:19 PM rue_mohr: echo $1
08:19 PM Tom_L: ?
08:19 PM rue_mohr: test script
08:19 PM Tom_L: you need that first line so it knows it's a script?
08:19 PM rue_mohr: thingiverse is only showing 97 of my 98 designs
08:20 PM rue_mohr: supposedly yes
08:20 PM rue_mohr: otherwise it doesn't know what interpreter to use
08:20 PM rue_mohr: cause just the same you can do a script in perl
08:20 PM rue_mohr: or python, or...
08:23 PM Tom_L: what's a comment line in a script?
08:25 PM rue_mohr: #
08:26 PM Tom_L: can you pass parameters to things like --device parameter
08:26 PM rue_mohr: no
08:26 PM Tom_L: crap
08:26 PM Tom_L: no way?
08:26 PM rue_mohr: thats a hashtable
08:26 PM Tom_L: like $2 $3 ?
08:26 PM rue_mohr: well you can make a loop that looks for --device as a string
08:27 PM Tom_L: pass 2 parameters
08:27 PM rue_mohr: yea, but you cant get just it to assign something for you
08:27 PM Tom_L: but i can pass 2 parameters
08:27 PM rue_mohr: via $number you can get everything that came after the program name
08:27 PM rue_mohr: yes
08:27 PM Tom_L: i'll try one
08:28 PM rue_mohr: thingiverse 'sank' a design of mine
08:39 PM Tom_L: do i need permissions to use ethernet in a script?
08:39 PM Tom_L: says permission denied as root
08:54 PM Tom_L: halp!
08:56 PM Tom_itx: #!/bin/bash
08:56 PM Tom_itx: echo loading...
08:56 PM Tom_itx: mesaflash --device 7i92 --addr 10.10.10.10 --readhmid
08:57 PM Tom_itx: permission denied
08:59 PM Tom_L: must be the .sh file itself
08:59 PM Tom_L: ok
09:01 PM Tom_L: ok it's working
09:35 PM Tom_L: thanks