[ubuntu-uk] gnome desktop background changer

Alan Lord (News) alanslists at gmail.com
Sat Oct 16 16:30:38 BST 2010


On 16/10/10 13:52, Steve Fisher wrote:
> #!/bin/bash
> rm background-1.xml

I think Heredocs would be easier to read & faster  here.

cat > background-1.xml << "EOF"
<background>
  <starttime>
   <year>2009</year>
   <month>08</month>
   <day>04</day>
   <hour>00</hour>
   <minute>00</minute>
   <second>00</second>
  </starttime>
<!-- This animation will start at midnight. -->
EOF

Al


-- 
The Open Learning Centre
http://www.theopenlearningcentre.com




More information about the ubuntu-uk mailing list