The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
crontab couldn't run through, help duke0001 UNIX for Advanced & Expert Users 10 02-06-2008 03:22 AM
help with crontab bob122480 Shell Programming and Scripting 3 01-22-2007 08:49 PM
Crontab gen4ik UNIX for Dummies Questions & Answers 1 01-18-2007 07:26 AM
ftp and crontab user` Shell Programming and Scripting 27 11-13-2006 08:02 PM
Crontab lo-lp-kl UNIX for Dummies Questions & Answers 2 05-05-2005 06:21 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-20-2006
Minguccio75 Minguccio75 is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 33
Crontab

I would like to schedule a job with crontab.
In the crontab file, I wrote:

0 12 20 11 * /export/home/x2693/project/scripts/perl test.pl 1 0 0

...but the output is:

Your "cron" job on suncbk11
/export/home/x2693/project/scripts/perl test.pl 1 0 0

produced the following output:

sh: /export/home/x2693/project/scripts/perl: not found


Someone can suggest me the correct syntax?
Thanks!
  #2 (permalink)  
Old 11-20-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,953
your path of the perl binary is not correct

/export/home/x2693/project/scripts/

try which perl

to locate your perl binary and substitute that
  #3 (permalink)  
Old 11-20-2006
Minguccio75 Minguccio75 is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 33
Excuse me... but the path is correct...
  #4 (permalink)  
Old 11-20-2006
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,322
I believe that he means you can do instead :

/usr/bin/perl /export/home/x2693/project/scripts/test.pl 1 0 0
  #5 (permalink)  
Old 11-20-2006
nathan nathan is offline VIP Member  
Supporter
  
 

Join Date: Jul 2006
Posts: 156
What output do you get when you run the command below from the command line?
Code:
/export/home/x2693/project/scripts/perl test.pl 1 0 0
My guess is that the above command won't work from the command line either, or you wouldn't be getting that error.
  #6 (permalink)  
Old 11-21-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,953
Quote:
Originally Posted by sysgate
I believe that he means you can do instead :

/usr/bin/perl /export/home/x2693/project/scripts/test.pl 1 0 0

I wonder why the perl bin should be under such a path
/export/home/x2693/project/scripts/

I doubt on the perl bin path.
  #7 (permalink)  
Old 11-21-2006
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,322
bottom line : find the perl bin by :
whereis perl
OR
which perl
and replace the path in the cron section.
Closed Thread

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:31 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0