Skip to Content »

Tech Life of Recht » Updated smugup.sh script

 Updated smugup.sh script

  • February 10th, 2008
  • 11:35 pm

I got a comment that my SmugMug uploader script had broken after the last upgrade. It turned out that my XML parsing with sed wasn’t exactly resistant to change, so the wrong field was printed from the returned XML.
I’ve changed the XML parsing to use awk instead, hopefully in a way that’s a little more resistant to changes in the format (although it’s not exactly perfect, but I don’t want to involve a real XML parser).
The new version is 1.1, and can be downloaded here.

6 People had this to say...

Gravatar

./smugup-1.1.sh: 35: Syntax error: Bad substitution

Gravatar
  • recht
  • February 17th, 2008
  • 2:05 pm

Maybe /bin/sh doesn’t point to bash? Try running the script with bash directly and see if that helps.

Gravatar
  • patrick
  • June 15th, 2008
  • 5:12 pm

This utility is really helpful. To fix the SSL certificate problem, I ran:

$ mv /usr/share/curl/curl-ca-bundle.crt /usr/share/curl/curl-ca-bundle.crt.OLD
$ curl http://curl.haxx.se/ca/cacert.pem > /usr/share/curl/curl-ca-bundle.crt

Then, to make it work on cygwin I changed the OUT=`tempfile` line to OUT=”/tmp/smug$$.tmp”. (For whatever reason, Cygwin doesn’t have “tempfile”.)

Thanks again!

[...] Tech Life of Recht » Blog Archive » Updated smugup.sh script. [...]

Gravatar
  • www.thegirlsshopping.com
  • January 29th, 2014
  • 11:55 am

The whole world of lit­tle kids fash­ions can change your lit­tle one proper fash­ion­able diva mak­ing her be like a authentic star with the mak­ing. http://www.thegirlsshopping.com

Gravatar
  • rozi
  • March 25th, 2014
  • 10:25 am

Wonderful work! This is the type of information that should be shared around the internet.alarm systems

Want your say?

* Required fields. Your e-mail address will not be published on this site

You can use the following XHTML tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>