UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old January 3rd, 2005, 09:58 AM
BBVIC BBVIC is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 BBVIC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m
Reputation Power: 0
UNIX, crontab

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

Reply With Quote
  #2  
Old January 3rd, 2005, 10:56 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 44 m 45 sec
Reputation Power: 9
there are millions threads about cron, help yourself

Reply With Quote
  #3  
Old January 7th, 2005, 05:07 AM
zlutovsky zlutovsky is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Prague, Czech Rep.
Posts: 116 zlutovsky User rank is Corporal (100 - 500 Reputation Level)zlutovsky User rank is Corporal (100 - 500 Reputation Level)zlutovsky User rank is Corporal (100 - 500 Reputation Level)zlutovsky User rank is Corporal (100 - 500 Reputation Level) 
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > UNIX, crontab


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway