Changes

Jump to navigation Jump to search
Line 72: Line 72:     
=== How do I get command line access to the files in my DataStore? ===
 
=== How do I get command line access to the files in my DataStore? ===
Use the [datastore symbolic links|dslinks.py] script to generate a set of symbolic links.  Then you can use the following script to copy selected datastore objects to a usb stick or sd chip.
+
Use the [http://wiki.laptop.org/go/Datastore_symbolic_links dslinks.py] script to generate a set of symbolic links.  Then you can use a script similar to the following to copy selected datastore objects to a usb stick or sd chip. This version selects all the datastore objects that have a file extension of '.odt' (which are generated by abiword).  To experiment with unix shell commands substitute 'echo $fn' for the 'cp -p $fn /media/KINGSTON'
 
<pre>
 
<pre>
 
         #use the unix for command to iterate over the activities or file extensions of interest
 
         #use the unix for command to iterate over the activities or file extensions of interest
         for fn in `find /home/olpc/datalinks |grep write`;  
+
         for fn in `find /home/olpc/datalinks |grep .odt`;  
 
         do
 
         do
 
           cp -p $fn /media/KINGSTON
 
           cp -p $fn /media/KINGSTON
6

edits

Navigation menu