WarNox
23-11-2009, 08:50 PM
Hey!
I have a script I'm trying to get to run automatically, just for testing purposes.
The script is:
#!/bin/bash
echo "to_file" >> /etc/cron.d/testtext
My 'crontab -e' output:
# m h dom mon dow command
* * * * * root /etc/cron.d/test.sh
Basically nothing happens and I cannot find any logs for cron in /var/logs/... If I run the script manually './test.sh' it works fine and puts a line 'to_file' into the 'testtext' file.
If I put 'echo "to_file" >> /etc/cron.d/testtext' directly into 'crontab' it works fine.
Anyone have any ideas?
Thanks in advance,
Gregor
I have a script I'm trying to get to run automatically, just for testing purposes.
The script is:
#!/bin/bash
echo "to_file" >> /etc/cron.d/testtext
My 'crontab -e' output:
# m h dom mon dow command
* * * * * root /etc/cron.d/test.sh
Basically nothing happens and I cannot find any logs for cron in /var/logs/... If I run the script manually './test.sh' it works fine and puts a line 'to_file' into the 'testtext' file.
If I put 'echo "to_file" >> /etc/cron.d/testtext' directly into 'crontab' it works fine.
Anyone have any ideas?
Thanks in advance,
Gregor