bash defeated??
<p>Ubuntu Breezy 5.10 (don't suggest an upgrade - it works!)</p>
<p>I'm trying to set up a script which updates some software on the hard drive from a directory on a USB Flash drive.</p>
<p>After I've plugged in the USB drive and seen it recognised by automount:</p>
<p>ls -l /vol/USBDISKB </p>
<p>OK - shows me the directory and files.</p>
<p>-BUT_</p>
<p>#!/bin/bash
if [ -d /vol/USBDISKB ]; then
echo "Found USB drive"
else
echo "Not found: USB drive!"
fi</p>
<p>doesn't see the USB drive. :-((</p>
<p>P.S. I tried to edit so it looks like code. Really.</p>
<p>18/04/10 08:54 GMT
Well! I don't know are am pretty stupid but I don't seem able to add a comment in response.
All I seem able to do is edit my original post :(</p>
<p>The obvious typos you can put down to my newbieness.</p>
<p>If you are interested on following this question there has developed a much bigger thread here:</p>
<p><a href="http://www.linuxquestions.org/questions/linux-software-2/bash-defeated-802372/" rel="nofollow">LQ Thread</a></p>