The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem with scheduling a shell script on cygwin using cron shash UNIX for Dummies Questions & Answers 4 08-09-2007 07:08 PM
problem when the script is scheduled to run as cron job forumthreads UNIX for Dummies Questions & Answers 6 07-19-2007 01:27 PM
script execute by cron problem, but manual ok izai Shell Programming and Scripting 6 06-01-2007 06:45 AM
CRON problem using script... Sorrento Shell Programming and Scripting 0 10-14-2005 01:48 PM
cron job problem with csh script fung_donald Shell Programming and Scripting 3 04-11-2002 11:15 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 10-13-2005
pascalbout pascalbout is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 94
problem with a script and the cron

hello

I use a script to give me the number of users, at each hour.
this script read a file where there is the number of users for each hour and for each month (so 12 files per year).
If i execute the script (root), it is ok, i have xxx users for each hour.
if I put the script in the cron (crontab -e), and kill the cron, the planification is right, the script is executed, but I have "0" user as result for each hour !
I have verified the file's permissions, and chmod 777 for each file, but it's same !!!

can you help me ?

thank you
  #2 (permalink)  
Old 10-13-2005
ravager's Avatar
ravager ravager is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 128
the biggest problem with scripts in cron is you loos the environment (env) you have as a user

So make sure all the scripts and commands use absolute path
Don’t use who use /usr/bin/who etc
If you need to find the command just use type who

Home this helps
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 08:08 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