The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with exec command and file descriptors II masaki Shell Programming and Scripting 1 03-18-2008 12:12 AM
exec command and field descriptors.. moxxx68 UNIX for Dummies Questions & Answers 5 12-04-2004 01:58 PM
exec command g_s_r_c Shell Programming and Scripting 1 09-20-2004 09:20 AM
using the -exec command moxxx68 UNIX for Dummies Questions & Answers 0 04-13-2004 11:51 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-26-2008
Registered User
 

Join Date: Jul 2006
Posts: 8
crontab + exec command

hi I am trying to activate auto_run.sh from crontab using following command line but nothing happen.

35 11 * * * -exec /u/uniacc/auto_run.sh

and this is the first line of auto_run.sh
ksh exec auto_inv.4ge > kti
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-26-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,094
By "nothing", you mean you don't even get an email saying that -exec is not a valid command?
Reply With Quote
  #3 (permalink)  
Old 03-26-2008
Registered User
 

Join Date: Jul 2006
Posts: 8
sh: -exec: not found

sh: -exec: not found
Reply With Quote
  #4 (permalink)  
Old 03-26-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,094
You get that by email? Then your crontab is working, you just need to fix the syntax. For example, just take out the"-exec".

Probably the syntax of auto_run.sh should be audited too; that first line doesn't look right, but if it works, maybe you don't want to mess with it.
Reply With Quote
  #5 (permalink)  
Old 03-26-2008
Registered User
 

Join Date: Jul 2006
Posts: 8
I made lot of changes to auto_run.sh & also removed -exec and it works perfectly. Thankyou for sharing and for your time. Bye
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:09 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0