Sponsored Content
Full Discussion: crontab issue
Top Forums Shell Programming and Scripting crontab issue Post 302366406 by tonijel on Thursday 29th of October 2009 11:36:15 AM
Old 10-29-2009
crontab issue

Helo .
I have 2.6.13-1.1526_FC4smp here.
I am trying to make crontab execute my simple shell script, but noting happens.

here is how i am testing this :

Code:
[oracle@dell ~]$ pwd
/home/oracle
[oracle@dell ~]$ ls -l two*
ls: two*: No such file or directory
[oracle@dell ~]$
[oracle@dell ~]$ crontab -e
crontab: installing new crontab
[oracle@dell ~]$
[oracle@dell ~]$ crontab -l
30 16 * * 4  /home/oracle/go.sh
[oracle@dell ~]$
[oracle@dell ~]$
[oracle@dell ~]$ cat go.sh
one.txt > two.txt
[oracle@dell ~]$
[oracle@dell ~]$
[oracle@dell ~]$ cat one.txt
blabla
[oracle@dell ~]$
[oracle@dell ~]$ date
Thu Oct 29 16:26:58 CET 2009
[oracle@dell ~]$
[oracle@dell ~]$ ls -l two*
ls: two*: No such file or directory
[oracle@dell ~]$
[oracle@dell ~]$
[oracle@dell ~]$ ps -ef | grep cron
root      2494     1  0 Oct16 ?        00:00:00 crond
oracle   27977 26405  0 16:27 pts/0    00:00:00 grep cron
[oracle@dell ~]$
[oracle@dell ~]$
[oracle@dell ~]$ date
Thu Oct 29 16:32:10 CET 2009
[oracle@dell ~]$
[oracle@dell ~]$ ls -l two*
ls: two*: No such file or directory

I can't understand why this go.sh can't be executed. What am i doing wrong ?
Am i missing some permisions or what?
Thanks...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Crontab Issue

I have a backup script that is suppose to run every night of the week, but it never does, it starts to run. The way I can tell is that the dates on dump_log are changing to when the script runs. If I look in the cron log file is shows ! > root 506342 cr /etc/back_up Fri Aug 5 10:30:00... (2 Replies)
Discussion started by: rickyt00
2 Replies

2. HP-UX

crontab issue

Dear Folks, i am new to hp-ux, i have a problem scheduling the crontab, The script is working fine at command prompt, but not working at cron, please find a solution for it , here are the logs and my schedule at cron: log after restarting crontab /var/adm/cron/log ! *** cron started *** ... (11 Replies)
Discussion started by: vaddi
11 Replies

3. UNIX for Advanced & Expert Users

crontab issue

I am adding a piece of code which adds entry in crontab ((in brown color)) \crontab -l > $tmpfile echo "Removing the cleanProcess entry if it already existed.." grep -v "cleanProcess.sh" $tmpfile > $newtmpfile lcnt=`grep -c "cleanProcess.sh" $tmpfile` echo... (4 Replies)
Discussion started by: crackthehit007
4 Replies

4. Shell Programming and Scripting

Issue with crontab

I have a ksh script which will connect to a database and executes some sql scripts. If i run the ksh script it is working fine. But if i schedule it to run at a perticular time using cron the sql script is not running. The scriptl initially creates a spool file for sql script and then connects and... (12 Replies)
Discussion started by: Sriranga
12 Replies

5. UNIX for Advanced & Expert Users

Crontab issue

We have configured a script to be run at specific time using crontab. # crontab -l 15 11 * * * VM_Count_V4.shas per the crontab entry script should run every day 11.15 a.m Every time when the script is executed i get a mail but when i run it using crontab it doesn't send any mail. However... (1 Reply)
Discussion started by: pinga123
1 Replies

6. AIX

Crontab issue

Hi all, I'm having a problem with a crontab entry execution for a non root user. AIX version 5.3 user@host ~ $ oslevel -r 5300-10 cron status user@host ~ $ ps -ef | grep cron root 377044 1 0 Oct 27 - 0:22 /usr/sbin/cron cron entry for user user@host ~ $... (3 Replies)
Discussion started by: h@foorsa.biz
3 Replies

7. UNIX for Dummies Questions & Answers

Crontab Issue..!!!

Hi, I have a cronjob but it is not getting executed.Is there any ways to check whether crontab is working.I have put crontab -l and checked.It got listed.But it is not working. My Crontab is, * * * * * /ldesk/home/abc/source/compare.sh >/dev/null 2>&1 (1 Reply)
Discussion started by: gayisada
1 Replies

8. Shell Programming and Scripting

Crontab issue

hi, i have schduled a job through crontab, but it is not getting executed. bash-3.2$ crontab -l # Monthly Download (mm hh DD MM format) 35 05 01 04 * /home/ftpsrp/srpftp1/download/ofrdb/scripts/load_ofrdb.sh crr.sh here is the permission of the .sh files -rwxr--r-- 1 ftpsrp srp ... (7 Replies)
Discussion started by: lovelysethii
7 Replies

9. UNIX for Advanced & Expert Users

Crontab Issue

My colleague who was a sysadmin , has created a cron job script which collects logs and process them. The script works perfectly as per the defined time set by him. it works when we keep the timing as 55 05 * * * , whereas if we try to prepone the cron task is not getting executed. Where... (10 Replies)
Discussion started by: aravindj80
10 Replies

10. UNIX for Dummies Questions & Answers

Crontab issue

Hello, I have a bash script that finds files older than 31 days and deletes them. I have this file loading into crontab to run everyday. It ran fine the first time i loaded it in, but now when I try to run it manually (bash file.sh) I get errors. Here is the script TIME=" -maxdepth 1... (6 Replies)
Discussion started by: jrymer
6 Replies
Info::Layer3::Dell(3pm) 				User Contributed Perl Documentation				   Info::Layer3::Dell(3pm)

NAME
SNMP::Info::Layer3::Dell - SNMP Interface to Dell Power Connect Network Devices AUTHOR
Eric Miller SYNOPSIS
# Let SNMP::Info determine the correct subclass for you. my $dell = new SNMP::Info( AutoSpecify => 1, Debug => 1, DestHost => 'myswitch', Community => 'public', Version => 1 ) or die "Can't connect to DestHost. "; my $class = $dell->class(); print "SNMP::Info determined this device to fall under subclass : $class "; DESCRIPTION
Provides abstraction to the configuration information obtainable from an Dell Power Connect device through SNMP. D-Link and the IBM BladeCenter Gigabit Ethernet Switch Module also use this module based upon MIB support. For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above. my $dell = new SNMP::Info::Layer3::Dell(...); Inherited Classes SNMP::Info::Layer3 Required MIBs Dell-Vendor-MIB RADLAN-Physicaldescription-MIB RADLAN-rlInterfaces RADLAN-HWENVIROMENT Inherited Classes' MIBs See classes listed above for their required MIBs. GLOBALS
These are methods that return scalar value from SNMP $dell->os_ver() ("productIdentificationVersion") $dell->dell_id_name() ("productIdentificationDisplayName") $dell->model() Returns model type. Returns numeric from ("productIdentificationDisplayName") if available, otherwise if returns description(). $dell->vendor() Returns 'dell', 'dlink', or 'ibm' based upon the IANA enterprise number in id(). Defaults to 'dlink'. $dell->os() Returns 'dell', 'dlink', or 'ibm' based upon the IANA enterprise number in id(). Defaults to 'dlink'. Overrides $dell->serial() Returns serial number. Returns ("rlPhdUnitGenParamSerialNum") if available, otherwise uses the Layer3 serial method. Globals imported from SNMP::Info::Layer3 See documentation in "GLOBALS" in SNMP::Info::Layer3 for details. TABLE METHODS
These are methods that return tables of information in the form of a reference to a hash. RADLAN Interface Table ("swIfTable") $dell->dell_duplex_admin() ("swIfDuplexAdminMode") $dell->dell_duplex() ("swIfDuplexOperMode") $dell->dell_tag_mode() ("swIfTaggedMode") $dell->dell_i_type() ("swIfType") $dell->dell_fc_admin() ("swIfFlowControlMode") $dell->dell_speed_admin() ("swIfSpeedAdminMode") $dell->dell_auto() ("swIfSpeedDuplexAutoNegotiation") $dell->dell_fc() ("swIfOperFlowControlMode") Overrides $dell->interfaces() Returns the map between SNMP Interface Identifier (iid) and physical port name. Uses name if available instead of description since descriptions are sometimes not unique. $dell->i_duplex_admin() Returns reference to hash of iid to current link administrative duplex setting. $dell->fw_mac() Returns reference to hash of forwarding table MAC Addresses. Some devices don't implement the "BRIDGE-MIB" forwarding table, so we use the "Q-BRIDGE-MIB" forwarding table. Fall back to the "BRIDGE-MIB" if "Q-BRIDGE-MIB" doesn't return anything. $dell->fw_port() Returns reference to hash of forwarding table entries port interface identifier (iid) Some devices don't implement the "BRIDGE-MIB" forwarding table, so we use the "Q-BRIDGE-MIB" forwarding table. Fall back to the "BRIDGE-MIB" if "Q-BRIDGE-MIB" doesn't return anything. Table Methods imported from SNMP::Info::Layer3 See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details. perl v5.12.4 2011-09-28 Info::Layer3::Dell(3pm)
All times are GMT -4. The time now is 04:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy