[Malvern] Bash Scripts..
Keith Edmunds
keith at midnighthax.com
Sun Jun 5 14:02:54 BST 2005
Robin Wilson wrote:
> Angus and Keith: I can't seem to get this to work - I presume i run it like
> this: './scriptname ./directoryname'. Is that correct? It gives an error
> "No such file or directory" so maybe I am specifiying the directory wrong?
Yes, you can run it like that. Ensure that you have done a "chmod +x
scriptname" as well (although not doing that will result in a different
error message). To see exactly where it is going wrong, run it like this:
$ bash -x scriptname directoryname
That will output every line to the terminal as it runs it.
> Also, will any of these scripts work with files which have spaces in their
> names?
Not as they stand (well, mine won't anyway), but not hard to fix so that
they do.
--
Keith Edmunds
+---------------------------------------------------------------------+
| Tiger Computing Ltd | Helping businesses make the most of Linux |
| "The Linux Company" | http://www.TheLinuxConsultancy.co.uk |
+---------------------------------------------------------------------+
More information about the Malvern
mailing list