Quote:
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:
Code:
tred@vaio:~$ ls /foo/bar
ls: cannot access /foo/bar: No such file or directory
tred@vaio:~$
So, what is / are your
exact errors?
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.
When
udev 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
Code:
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
Code:
echo this is what's mounted right now >> logfile
mount >> logfile
the_line_that_fails
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:
Code:
cat /home/jan/copy.sh
script2 &
asd
asdasd
asdasd
etc
cat /home/jan/script2
more commands
etc
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.