The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cron not running garric UNIX for Advanced & Expert Users 6 04-11-2008 09:32 AM
Cron not running .. please help beisaikong Shell Programming and Scripting 2 07-12-2007 08:05 AM
How do I prevent cron from returning errors on a file not found? goodmis Shell Programming and Scripting 6 02-06-2007 10:14 AM
Cron Job Not Running nag_sundaram HP-UX 1 10-17-2005 11:38 AM
java errors when calling from cron mntamago Shell Programming and Scripting 3 11-18-2002 09:50 AM

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 01-22-2002
knarayan knarayan is offline
Registered User
  
 

Join Date: Jan 2002
Location: NJ
Posts: 15
errors when running a cron job

I am running some shell scripts through a foll cron job, the script works fine and there are no errors in the log file but I receive the following error in mail for the jobs:
stty: no such device or address

What does the above error indicate, here is the cron job:
0 22 * * 0 /ora_install/orainventory/admin/prod1/scripts/bkpl.sh>/home
cle/logs/bkpl.log

I am running my profile in the shell script.
  #2 (permalink)  
Old 01-22-2002
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 500
Would including spaces make a difference?
Code:
0 22 * * 0 /ora_install/orainventory/admin/prod1/scripts/bkpl.sh > /homecle/logs/bkpl.log
And does the directory /homecle/logs/ exist?
  #3 (permalink)  
Old 01-23-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
I believe that it's because you are sourcing your .profile... Check to see if your .profile has any references to stty in it (many do, such as "stty erase ^?"). If so, that's your problem; since it's being run by a process that does not have an interactive sessions, and therefore no real controlling terminal.

You can put your PATH and other important vars in the script, or make a "clean" profile that all of your cron scripts can source.

Hope this solves it.
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 04:09 AM.


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