
January 7th, 2005, 05:07 AM
|
|
Contributing User
|
|
Join Date: Dec 2004
Location: Prague, Czech Rep.
Posts: 116
  
Time spent in forums: 22 h 34 sec
Reputation Power: 6
|
|
Quote: | Originally Posted by BBVIC Hi, Happy New Year..
I have a question about "crontab"
I tired to run
05 * * * * tclsh /home/httpd/docs/cgi-bin/a.tcl
using crontab.
But...this one did not work.
When I type
05 * * * * mkdir /home/httpd/docs/cgi-bin/a,
then it creates the directory.
Why does it happen??
Would you please help me??
Thank you in advance |
Hi,
this is quite simple, cron daemon runs in another environment then you from the command prompt. The system command mkdir can be found using the PATH provided by the system to the cron daemon, the command tclsh is probably your program that lies in your directory. Call it using absolute path, i. e. /home/myname/tclsh. If you call another programs from tclsh, use the absolute paths, too. If you need some environmet variables, you must provide them before running tclsh.
I have made this error as a beginner, too. 
|