Great to find the topic taking deep discussion where the information grow more and more..
Alright, here we come to something else..
- I did really create my own designated directory, called it:
/mybin
- I moved my own-made-scripts into it, from the previous directory /bin
- I updated my $PATH to include the new directory (I prefer to call the script by its name only rather than the full bath.. time saving..!!)
- It worked, and I was able to call it by the name.. so I thought it worked.
Well, I found a problem..
I have into my cron jobs this for example:
Code:
30 * * * * some-script
That some-script was in /bin and the cron job was succeeding to find it.
Now, after I put it into the new directory.. I get this error:
Code:
/bin/sh: some-script: command not found
Even-though, I can call it directly from the command line like:
Is there something more that I'll have to do to have the Crond able to find it?
Regards..