auto running a command
hi just a quick question
i need to run a command namely Code:
perl hlstats-awards.pl im using suse 10 if that helps |
hi there,
Code:
man crontab Code:
/etc/cron.daily slackie1000 |
Quote:
|
hi there,
can you write perl but can't read a man page? Code:
echo "perl hlstats-awards.pl" > /etc/cron.daily/nothing.sh regards, slackie1000 |
Quote:
thank you for the help will let you know 2morro if it works lol (wont know till then i guess) edit *updated the url gave the wrong one* |
nope it didnt apear to work any ideas?
|
hi there,
how did you proceed? did you give the complete path of your perl script in the script? could be that you have some permission issue? trying to write something in some directory that you can't? regards, slackie1000 |
Quote:
followed your instructions on permissions gave it an absolue pathe the pl file it opens is 777 in permission and it writes to a sql file (with root access inside the pl file) the sh file we created has the whole path in it |
hi there,
so, the file is under /etc/cron.daily/ and every permission issue is ok. what happens if you run the script from inside /etc/cron.daily ? Code:
cd /etc/cron.daily/ regards, slackie1000 |
should be, unless it have some requirement that it needs to be run on a specific location.
|
Ignoring the schedule for now, does the command do what it is supposed to when put into a shell?
|
/serv/www/htdocs/tr/perl/perl does not exist
i have changed it to perl /srv/www/htdocs/tr/perl/hlstats-awards.pl but when i execute the command i get i get a load of errors so i changed it to #!/bin/sh cd /srv/www/htdocs/tr/perl/ perl hlstats.awards.pl that seems to work fine when issued from the command line but no idea how it will fair dially well let you guys know in a couple of days |
hi there,
if this Code:
#!/bin/sh regards, slackie1000 |
All times are GMT -5. The time now is 09:29 PM. |