02-16-2012
Quote:
05 00 * * 0,4,5,6, sleep 45 && /usr/local/bin/set_radio_cron grp0 0 0 &
In above the sleep command is not working but the other command "/usr/local/bin/set_radio_cron grp0 0 0" is working for only below condition.
-> when present time is hr 00:05:12 sec , given time hr 00:05:00 sec
The above quoted command is working fine when :
-->when present time is hr 00:04:12 sec , given time hr 00:05:00 sec
please comment on above ...
10 More Discussions You Might Find Interesting
1. Solaris
Hi,
Here is the code snippet when executing on the command line it does execute smoothly, but while i place this on cron it doesnt run.
Can anybody suggest where the problem in cron is.?
#!/usr/bin/ksh
home_dir="/export/home/scripts/MonitorScripts"
ThresholdLimit=5
touch... (6 Replies)
Discussion started by: rameek20
6 Replies
2. Solaris
Hi,
I want to run a crontab job on solaris 10.5. I have configured the crontab accordingly
10 * * * * /scripts/dbalter.pl >> /scripts/cronout.txt
However this does not work .Then I go to /var/mail/root and find an error in the output:
From root@myserver Wed Feb 4 17:02:00 2009... (1 Reply)
Discussion started by: sonu2die4
1 Replies
3. Programming
How can I get around this? when my program reaches the following popen job it halts the program until the ping/netstat/ipconfig/traceroute is completed then resume to the rest of the program...
FILE *in;
extern FILE *popen();
char buff;
char newline;
char nstat;
char nping;
... (5 Replies)
Discussion started by: Jess83
5 Replies
4. Shell Programming and Scripting
/usr/bin/find $SEARCH_DIR -daystart \( \( -name 'KI*' -a -name '*.csv' \) -o -name '*_xyz_*' \) -mtime $DAYS_AGO -printf %f -printf "\n" | sort -r > $FILES
The above command gives different results when run on a cron job. When run manually the result is accurate. (2 Replies)
Discussion started by: nuthalapati
2 Replies
5. AIX
Guys,
I am beginer in unix. There is a cobol file with fixed-width. I want to read the total Line, Word and character count. I have tried with wc-l unix command, but it returns '0'.
Please advice me the correct command/steps to get the record count.
Thanks in advance. (4 Replies)
Discussion started by: vibhar
4 Replies
6. Shell Programming and Scripting
Hello,
There's a third-party application's command that shows the application's status like "tail -f verybusy.log". When use the command, the output comes every 1-sec. but when it goes in a script below the output comes every 8-sec...What is the problem and how can I fix it?
open(CMD,... (2 Replies)
Discussion started by: Shawn, Lee
2 Replies
7. Shell Programming and Scripting
Hello,
I am trying to write a unix cmd , that if files in folder /path/FTP are all zero kb or empty then good to go, if not empty then sleep for 8 hrs.
Following cmd list me the files which are not empty, But when I am incorporating IF ELSE cmd fails
find /path/FTP. -type f -exec wc -l {}... (6 Replies)
Discussion started by: bluestarmoon
6 Replies
8. UNIX for Dummies Questions & Answers
Hello gurus,
I am making what I think is a simple db2 call from within a shell script but I am having difficulty producing the desired
report when I run the script shown below from a shell script in cron. For example, my script and the crontab file setup
is shown below:
#!/bin/ksh
db2... (3 Replies)
Discussion started by: okonita
3 Replies
9. Shell Programming and Scripting
HI,
I have written an executable file in unix and I was able to execute it successfully but when I called this file with cron job it was giving error like "permission denied" and "No such file or directory".
Please help in how cron calls the file and what permission is required on the file... (2 Replies)
Discussion started by: vipin kumar rai
2 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I'm unable to understand why the grep command in cronjob works intermittently
Expected output:
Grep command to look for a particular string with today's date and exit from infinite while loop else it must sleep for 5 mins
I'm using the following statement in my shell script, the... (9 Replies)
Discussion started by: charlie87
9 Replies
LEARN ABOUT OSF1
auditconfig
auditconfig(8) System Manager's Manual auditconfig(8)
NAME
auditconfig, audit_setup - Audit subsystem configuration graphical interface (Enhanced Security)
SYNOPSIS
/usr/sbin/sysman auditconfig
NOTE: The audit_setup utility has been replaced by the auditconfig graphical interface.
DESCRIPTION
The graphical user interface is used interactively to establish the audit environment on your system. The interface can be selected from
the Sysman menu, syman_station (including PC clients), or it can be started from the command line. See the sysman(8) and syman_station(8)
reference pages for more details.
If a kernel rebuild is required as part of the configuration, auditconf guides the user through the rebuild and reboot. The auditconfig
interface configures the following aspects of the audit subsystem: Location of the audit logs. The /var/audit/ directory is the default
area. Action for the audit subsystem to take if the file space allocated for audit logs is exhausted. Trimming of audit logs. Enable
accepting audit data from remote systems. Select the profiles/categories of events to be audited. Include environment strings with an or
system call.
You must be root to run
FILES
/etc/sec/event_aliases
A set of aliases by which logically related groupings of events can be constructed. You can modify this set of aliases to suit your
site's requirements.
/etc/sec/auditmask_style
Auditmask style selections.
/etc/sec/auditd_clients
A list of hosts from which audit data can be accepted.
/etc/sec/auditd_loc
A list of alternative locations in which auditd stores audit data when an overflow condition is reached.
/etc/sec/audit_events
A list of all security-relevant system calls and trusted (application) events. You can modify this file or use it as a template.
/etc/sec/file_objects/*
The list of files that auditconfig used to enable object selection or deselection.
/etc/rc.config.common
The cluster-wide rc variables for the audit subsystem.
/etc/sec/rc_audit_events
Used for input to for audit events during system initialization.
/etc/sec/fs_objects
Created when object (de)selection is derived from a profile(category). It contains the selected profile's entries of file objects.
RELATED INFORMATION
Commands: auditmask(8), auditd(8), sysman(8), sysman_station(8)
Security, System Administration delim off
auditconfig(8)