Sponsored Content
Top Forums Shell Programming and Scripting Cron job is not working in the desired manner on IBM AIX Post 302658829 by ygemici on Wednesday 20th of June 2012 04:37:10 AM
Old 06-20-2012
Quote:
Originally Posted by acidburn_007
could you please let me know where to check for the mail on IBM AIX ? As I am totally new to it !
check the last mails for the actual time that you executed the cron job
Code:
# mail
& h $

and then for example the output
Code:
U3180 root@XXXXX  Wed Jun 20 07:01  26/1073  "Cron <root@XXXXX> run-parts /etc/cron.hourly"
U3181 root@XXXXX  Wed Jun 20 08:01  26/1073  "Cron <root@XXXXX> run-parts /etc/cron.hourly"
U3182 root@XXXXX  Wed Jun 20 09:01  26/1073  "Cron <root@XXXXX> run-parts /etc/cron.hourly"
U3183 root@XXXXX  Wed Jun 2

chek the last mails to header number and look at the below lines
Code:
& 3183

Message 3183:
From root@XXXXX  Wed Jun 20 10:01:01 2012
Date: Wed, 20 Jun 2012 10:01:01 +0300
From: root@XXXXX (Cron Daemon)
To: root@XXXXX
Subject: Cron <root@XXXXX> run-parts /etc/cron.hourly
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/usr/bin/ksh>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <HOME=/>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>

execl: couldn't exec `/usr/bin/ksh'     ###  --> Any message like these ?
execl: No such file or directory                      ###


Last edited by ygemici; 06-20-2012 at 05:42 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cron job not working

Hi All, I created a shell script and it works perfectly fine when I run from the command. But the same does not work as expected when I call it from a cron job. Here is the shell script(scan.sh): # # #Which directory to scan for files?... (7 Replies)
Discussion started by: janavenki
7 Replies

2. UNIX for Dummies Questions & Answers

Cron job not working

Hello, I have the following crontab entry that does not seem to be running. When I check /var/cron/log, it is not there. Here is my os info: SunOS birch 5.9 Generic_118558-09 sun4u sparc SUNW,Sun-Fire-V240 Here is the crontab entry: 01 21 * * * find /export/app/datafeed/flus/archive -mtime... (5 Replies)
Discussion started by: dkranes
5 Replies

3. Shell Programming and Scripting

cron job not working for some reasons

I set up a new cron job. I have set cron jobs many times in the past and never faced issues. For some reasons my new cron job is not working.This is how my cron job looks like. plz help me out guys. 3,8,13,18,23,28,33,38,43,48,53,58 * * * * /siebel/sblp900/home/FSMTaskChk/script... (14 Replies)
Discussion started by: ragha81
14 Replies

4. Shell Programming and Scripting

Sudo command not working with cron job.

Hello, I have written a script that has a sudo command to change file permissions within it. When I run the script manually, the sudo command inside of it works fine. When the script is run through crontab I get the error "cron: not found". It the same user profile that I am using... (6 Replies)
Discussion started by: WhotheWhat
6 Replies

5. Shell Programming and Scripting

HELP: I need to sort a text file in an uncommon manner, can't get desired results

Hi All I have a flat text file. Each line in it contains a "/full path/filename". The last three columns are predictable, but directory depth of each line varies. I want to sort on the last three columns, starting from the last, 2nd last and 3rd last. In that order. The last three columns... (6 Replies)
Discussion started by: JakeKatz
6 Replies

6. Shell Programming and Scripting

cron job is not working for two scripts

Hi Gurus, I have a test unix server in which currently some unix cronjob are running. I have written two script one is a shell script in which env variable are there (in that i am exporting those variables). I have also written a perl script . when i am running at the shell manually like... (5 Replies)
Discussion started by: sanjay.login
5 Replies

7. Shell Programming and Scripting

cron job now working?

Hi all, I wrote a script as below, #!/bin/ksh . /app/home/etc/sudo.profile >/dev/null java -jar $HOME/abc.jar The jar file abc.jar is located in the same folder as the script. When I'm manually running that script the jar file gets executed. However if I set a cron job, it... (5 Replies)
Discussion started by: isaacniu
5 Replies

8. UNIX for Dummies Questions & Answers

Cron job not working

cron process in AIX is there when I do ps -ef |grep cron, but none of cron job is working. It appears that cron process is hanging or having some issues? How do you resolve this? Do I kill the cron process by kill -9 PID? and how to start it? Please advise. (1 Reply)
Discussion started by: Daniel Gate
1 Replies

9. AIX

Cron job not working but works on other nodes.

Hi All, I have a many cron jobs scheduled in my AIX server. Only one cron not getting executed in the same server but that job is good on all other servers. Here is my cron , which will keep last 30 files and remove others., 00 00 * * * /usr/bin/find /tmp/reports/nmon -name *.nmon -mtime... (9 Replies)
Discussion started by: Thala
9 Replies

10. Shell Programming and Scripting

Crontab - entry not working , cron job not running

I have put a cron entry in oracle user for taking hot backup every wednesday@ 2.30 AM and have given the cron entry 30 02 * * 3 /u01/vijay/hotbackupcron 2>&1 >> /u01/vijay/hotbackup.log also find below the script inside hotbackupcron, i have put in env variables as well ... (13 Replies)
Discussion started by: vijaymec50
13 Replies
pbs_resources_aix4(7B)							PBS						    pbs_resources_aix4(7B)

NAME
pbs_resources_aix4 - pbs Resources on IBM AIX 4 DESCRIPTION
This page summarizes the resources supported by PBS for IBM systems running AIX version 4. These resources are specified for jobs by including them in the -l option argument on the qsub or qalter command or in the PBS job script. RESOURCES
cput Maximum amount of CPU time used by all processes in the job. Units: time. file The largest size of any single file that may be created by the job. Units: size. mem Maximum amount of physical memory (workingset) used by the job. Units: size. vmem Maximum amount of virtual memory used by all concurrent processes in the job. Units: size. nice The nice value under which the job is to be run. Units: unitary. pcput Maximum amount of CPU time used by any single process in the job. Units: time. pmem Maximum amount of physical memory (workingset) used by any single process of the job. Units: size. pvmem Maximum amount of virtual memory used by any single process in the job. Units: size. walltime Maximum amount of real time during which the job can be in the running state. Units: time. arch Specifies the administrator defined system architecture requried. This defaults to whatever the PBS_MACH string is set to in "local.mk". Units: string. host Name of host on which job should be run. This resource is provided for use by the site's scheduling policy. The allowable val- ues and effect on job placement is site dependent. Units: string. nodes Number and/or type of nodes to be reserved for exclusive use by the job. The value is one or more node_specs joined with the '+' character, "node_spec[+node_spec...]. Each node_spec is an number of nodes required of the type declared in the node_spec and a name or one or more properity or properities desired for the nodes. The number, the name, and each properity in the node_spec are separated by a colon ':'. If no number is specified, one(1) is assumed. Units: string. The name of a node is its hostname. The properities of nodes are: . ppn=# specifying the number of processors per node requested. Defaults to 1. . arbitrary string assigned by the system administrator, please check with your administrator as to the node names and properi- ties available to you. Examples: . To ask for 12 nodes of any type: -l nodes=12 . To ask for 2 "server" nodes and 14 other nodes (a total of 16): -l nodes=2:server+14 The above consist of two node_specs "2:server" and "14". . To ask for (a) 1 node that is a "server" and has a "hippi" interface, (b) 10 nodes that are not servers, and (c) 3 nodes that have a large amount of memory an have hippi: -l nodes=server:hippi+10:noserver+3:bigmem:hippi . To ask for three nodes by name: -l nodes=b2005+b1803+b1813 . To ask for 2 processors on each of four nodes: -l nodes=4:ppn=2 . To ask for 4 processors on one node: -l nodes=1:ppn=4 . To ask for 2 processors on each of two blue nodes and three processors on one red node: -l nodes=2:blue:ppn=2+red:ppn=3 host Allows a user to specify the desired execution location. This resource is provided for use by the site's scheduling policy. The allowable values and effect on job placement is site dependent. Units: string. other Allows a user to specify site specific information. This resource is provided for use by the site's scheduling policy. The allowable values and effect on job placement is site dependent. Units: string. software Allows a user to specify software required by the job. This is useful if certain software packages are only available on cer- tain systems in the site. This resource is provided for use by the site's scheduling policy. The allowable values and effect on job placement is site dependent. Units: string. EXAMPLES
qsub -l nodes=15,walltime=2:00:00 script or in a qsub script as a directive: #PBS -l nodes=15,walltime=2:00:00 qsub -l cput=1:00:00,walltime=2:00:00,file=50gb,mem=15mb script qalter -lcput=30:00,pmem=8mb 123.jobid or in a qsub script as a directive: #PBS -l cput=1:00:00,walltime=2:00:00,file=50gb,mem=15mb RESOURCE UNITS
The resource values take the following units: time specifies a maximum time period the resource can be used. Time is expressed in seconds as an integer, or in the form: [[hours:]minutes:]seconds[.milliseconds] size specifies the maximum amount in terms of bytes or words. It is expressed in the form integer[suffix] The suffix is a multiplier defined in the following table, The size of a word is the word size on the execution host. b or w bytes or words. kb or kw Kilo(1024) bytes or words. mb or mw Mega (1,048,576) bytes or words. gb or gw Giga (1,073,741,824) bytes or words. unitary The maximum amount of a resource which is expressed as a simple integer. SEE ALSO
the PBS ERS, qsub(1B), qalter(1B), pbs_submit(3B), pbs_alterjob(3B), pbs_statjob(3b) pbs_resources_irix5(7B), pbs_resources_sp2(7B), pbs_resources_sunos4(7B), pbs_resources_unicos8(7B) Local pbs_resources_aix4(7B)
All times are GMT -4. The time now is 10:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy