irclog2html for #byumug on 20060201

00:55.25*** join/#byumug wps (n=wps@65.73.113.199)
00:55.25*** mode/#byumug [+o wps] by ChanServ
04:10.17*** join/#byumug dna3e8 (n=dna3e8@128.187.168.196)
04:12.30dna3e8sup
04:12.48dna3e8So there is a happy meeting feb 3 as 4pm...
04:13.33dna3e8It is not on the BYUMUG calander...       http://ical.mac.com/drewbono/BYUMUG.ics
15:21.06*** join/#byumug wps (n=wps@38.119.178.10)
15:21.06*** mode/#byumug [+o wps] by ChanServ
16:10.35*** join/#byumug feutetejsd (n=ned@charon.thna.net)
17:11.57wpshow do I check what version I have of a command line app?
17:12.21feutetejsddepends on the app...some are command -v
17:12.24feutetejsdsome are command --version
17:12.27feutetejsdsome are command -V
17:12.50feutetejsdwhat app is it?
17:13.00wpsthanks
17:13.01wpsrsync
17:13.03wps-v worked
17:13.22wps--version is less verbose
17:13.28feutetejsdcoo
17:14.57feutetejsdwith rsync, saying rsync --help also gives version information as well as a brief description of options
17:50.55wpsfeutetejsd: I just compiled a new, patched, version of rsync
17:51.03wpsapple's default version is in /usr/bin
17:51.05feutetejsdcool
17:51.12wpsi put my new version in /usr/local/bin
17:51.31wpshow do I change things so that when I type "rsync" in the command line, it uses the new version?
17:51.53wpsjust with an alias in .bash_profile?
17:52.21feutetejsdI would either mv /usr/bin/rsync /usr/bin/rsyncAPPLE and then mv /usr/local/bin/rsync /usr/bin
17:52.53wpsor?
17:53.01feutetejsdwell, I honestly guess that's all I would do....I don't have much of an "or"
17:53.07wps:)
17:53.30feutetejsdunless you want to monkey with $PATH so that /usr/local/bin comes first
17:55.35wpsno, no monkeying
17:56.02feutetejsdok, then I'd backup the apple version and put the new one in /usr/bin
17:56.07wpsdone
17:56.39wpstesting now
17:56.45feutetejsdcool
18:09.11wpsit works!
18:09.23feutetejsdnice
18:09.25feutetejsdhooray!!!
18:10.06feutetejsdhooray for OSS!!!
18:13.47wpsthis is awesome
18:13.54wpsnow I can have an automated system
18:14.00wpsI have been backing everything up manually each week
18:14.08wpsnow with launchd, I can have it run every night
18:14.13feutetejsdsweet
20:23.18wpswhat's the difference between /bin/bash and /bin/sh ?
20:26.02feutetejsdactually, on my system, they are the same
20:26.08feutetejsdmd5sums are exactly the same
20:27.09wpsand to run a script, you have to type "perl <scriptname>" unless it's in your path or you have an alias, right?
20:28.00feutetejsdwell, if it's executable, and the first line of the script tells where to find the binary, you can run it like this:
20:28.04feutetejsd./scriptname.pl
20:28.21feutetejsdif the first line says : #!/usr/bin/perl
20:28.49feutetejsdor /path/to/script.sh
20:28.54feutetejsdif the first line is #!/bin/sh
20:28.55wpswhat is .sh?
20:29.00feutetejsdshell script
20:29.01wpsa script full of terminal commands?
20:29.04feutetejsdmore or less
20:29.17wpsfirst line is /bin/bash
20:29.27feutetejsdyeah, that'll do too
20:29.41wpsso, ./<scriptname>.sh is how you run it?
20:30.20feutetejsdyes, if the script is executable, or you can do sh <scriptname>.sh   either way should work fine
20:30.44wpssh <scriptname> if it's _not_ executable?
20:30.50feutetejsdright
20:31.33wpsthanks
20:32.13feutetejsdnp
21:17.20wpshttp://pastebin.com/534370
21:17.29wpsI am getting an error when I run that script
21:17.41wps./test: line 9: syntax error: unexpected end of file
21:17.49wpsdo you know what I need?
21:17.56feutetejsdstand by
21:24.29feutetejsdi think this might be the ticket....BTW, shell scripting is VERY finnicky
21:24.31feutetejsd#!/bin/sh
21:24.31feutetejsdecho "Hello, $1!"
21:24.32feutetejsdif [ $2 = "well" ]; then
21:24.32feutetejsd<PROTECTED>
21:24.35feutetejsdfi
21:24.54wpswhat's that?
21:25.00wps<PROTECTED>
21:25.06feutetejsdit's your script
21:25.21feutetejsdwith a few tweaks
21:25.53wpsright… you put a "fi" on the last line? I've never seen that syntax before.
21:26.04feutetejsdwelcome to shell scripting
21:26.10wpsk
21:26.11wpsthanks
21:26.31feutetejsdalso removed () and {} and replaced with [] instead of () and then a semicolon and "then"
21:27.17feutetejsdalso note that there is a space between [ and $2 and again between "well" and ]
21:27.22feutetejsdthose spaces are important
21:27.57feutetejsdand finally, you use a single = for string comparisons ...and I believe a -eq for int comparsons
21:28.37feutetejsdgood times, eh? shell scripting is all kinds of useful, but it's very unforgiving
21:28.51wpsick
21:30.30*** join/#byumug ChanServ (ChanServ@services.)
21:30.30*** mode/#byumug [+o ChanServ] by irc.freenode.net
21:44.05dna3e8The happy MUG meeting is not on the BYUMUG iCal calendar....  http://ical.mac.com/drewbono/BYUMUG.ics
21:45.15wpssend a note to Andrew
21:45.28wpshe maintains it

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.