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 > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Telnet is not working properly deepak_pathania UNIX for Dummies Questions & Answers 1 10-05-2007 05:59 PM
Rlogin not working properly from Linux frankkahle UNIX for Advanced & Expert Users 1 10-19-2006 10:02 PM
Cron won't run properly Steeler_fan UNIX for Dummies Questions & Answers 2 08-31-2006 09:32 AM
y is this not working properly? C|[anti-trust] High Level Programming 3 05-18-2005 12:55 PM
Keyboard not working properly... timresh UNIX for Dummies Questions & Answers 2 02-25-2005 07:28 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 3.00 average. Display Modes
  #1 (permalink)  
Old 10-26-2007
risshanth risshanth is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 64
Unhappy Cron - Not working properly

Hi,
I do have three scripts. Whcih inserts records into a table using sqlldr, creating some reprot files etc. The first script will call the second and then the second will call the third. When I run my first script from the shell prompt, all my operation are completed successfully. If I do the same using a cron , then its working partially. Not able to insert records, log files not generating etc.. Is there any seeting to be made in cron or how can this be solve ?? Help me out ... I am using HP-Unix
  #2 (permalink)  
Old 10-26-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Do a search on this site. 99% of cron problems are due to people making wrong assumptions about the environment.

cron gives you a minimal environment, it does not run your .login, .profile or whatever.
  #3 (permalink)  
Old 10-26-2007
risshanth risshanth is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 64
I am using unzip in my second script. But that command is returning 127. As i said earlier if I run my first script from the prompt, then it call the second script, it does the unzip operation succesfullly and the process goes on. Only when the first script is scheduled in a cron, the unzip fails and after that nothing is working. Wat can be done for this ??
  #4 (permalink)  
Old 10-26-2007
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,119
What can be done first is to start here with the FAQs
  #5 (permalink)  
Old 10-28-2007
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 499
Unzip returns 127 = ???
And show us your script perhaps.
  #6 (permalink)  
Old 10-29-2007
risshanth risshanth is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 64
unzip myfile.zip > /dev/null
echo $?


If i store the above lines in a script and run that manually then its working fine. If i schedule the script using cron , htne its returning 127. What could be cause ??
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:20 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