The output error says "no such file or directory".
I don't wish to appear unduly critical, but error messsages are usually a little
bit more helpful:
tred@vaio:~$ ls /foo/bar
ls: cannot access /foo/bar: No such file or directory
So, what is / are your exact
I still think you have a path problem: When you wrote those scripts maybe you assumed
that they'd be called from ~
because they work when you call them from there.
runs them they will be being called from somewhere else and not by the user janfranken
. Think about this.
Maybe, just before your script fails with "file not found", insert a
echo scriptname is in the directory $(pwd) and about to execute the next command, which fails >> logfile
which may give you some insight.
Or maybe insert
echo this is what's mounted right now >> logfile
mount >> logfile
You could post your script(s) here. Please post the name of the script, and the full path to it, and its contents, like this:
If they are long you could put them all in one post here: http://rafb.net/paste/terms.html
(only good for 24Hrs though) then we'd have a better idea of what it is you are trying to do, and maybe why it isn't working for you.