Hi Helloise,

That's why in my previous example I put the full path of the script in the
cron line command:
8 5 * * * /home/rainbowcode/rainbowcode.sh

If you put only rainbowcode.sh:
8 5 * * * rainbowcode.sh

The system would not find it because it's not in the default PATH
environment variable. So, instead of modifying your PATH env var every time
you want to pass a script to cron, you can use absolute path, e.g.
/home/rainbowcode/myapp/scripts/bin/subdir1/subdir2/crazysubdir/verydeepsubdir/rainbowcode.sh.


Regards,

On 6 May 2011 18:59, Helloise Smit <helloi...@miranetworks.net> wrote:

> yes sorry that was in the cronjob i nuked...
> i made a new file called rainbowcode.sh
> and have these lines in rainbowcode.sh:
> #!/bin/sh
> /usr/bin/php /home/rainbowcode/DB-Query-Script.php rainbowcode yesterday
> helloi...@miranetworks.net
>
> NOW if i run the new cron:
> a12:/home/rainbowcode# rainbowcode.sh
> i get:
> bash: rainbowcode.sh: command not found
>
> how do i run the new one to test it please?
> thanks all!
>
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to