Hi,
I would like to trigger a scipt on every Wednesday 12:00PM.
how can schedule this script in CRON command.
Could you please help me on this. (3 Replies)
Hi,
In awk in can pass input to a command like this
echo "1 2" | awk '{p=$1+$2;print v}'or I can use v option to pass input to awk command
In the similar way How can I pass input to a perl command. For example :
perl -pi -e 'if ( $. == 2 ) {print "Hello\n" }' input.txtIn the above... (1 Reply)
I am trying to search a log for a particluar pattern listing the total # of occurences in the end.
I thought using a shell script for input then calling awk to search for the paramters specified. I want the script to be usable acorss envs.
Code:
#! /usr/bin/bash
# get the variables... (5 Replies)
Hello,
I've got a KSH which I use to monitor processes then email me when complete. I pass the process name to the script and the update interval.
Does anyone know how I can get this to execute in the background. I can't use 'scriptname &' as it starts in the background before reading in my... (3 Replies)
55,0 5,6 * * * myScript
This cron task will execute on 5:00AM, 5:55AM, 6:00AM and 6:55AM.
Is there any possibility to make it run only in the order specified
such as 5:55AM and 6:00AM (basically only on the 2 intervals) ? (1 Reply)
Hi,
I have one shell script where it will copy all files to a directory which is already present,
For example :
i have directory DIRA and DIRB, and my shell script will expects user input to specify which directory should files must be copied. this shell scrip i am running every day using... (1 Reply)
I have a shell program that calls another shell program
the following code works
. chkTimeFormat.sh "10/9/12 17:51:19:783."|read c
but when I am passing the the time in a variable like in the code below, the shell chkTimeFormat.sh is not returning proper value
time="10/9/12... (9 Replies)
Hi All,
I have to insert 2 values to a text file in specific places. I have been able to extract each variable value via a script but am not able to send these variable values to the text file.
Pasted is the script for extracting the variable values:
for i in `ls -1` ... (2 Replies)
May i please know why is it printing the script name for $0 when i pass those parameters to function.
#!/bin/bash -x
usage()
{
echo "In Usage Function"
echo $0
echo $1
echo $2
}
echo "printing first time"
echo $0
echo $1
echo $2
usage $0 $1 $2
Output: (2 Replies)
Dear All,
I have a question on what is the best way to control and list out multiple selective keywords to print out the report
Below is the Sample output of the listing
Code1
Code1
Code1
Identifier "Job"
Code2
Code2
Code2
Name "Impressive"
Code3
Code3
Code3
AGT_Manual
Code1... (3 Replies)
Discussion started by: ckwan
3 Replies
LEARN ABOUT LINUX
atd
ATD(8) System Manager's Manual ATD(8)NAME
atd - run jobs queued for later execution
SYNOPSIS
atd [-l load_avg] [-b batch_interval] [-d] [-f] [-s]
DESCRIPTION
atd runs jobs queued by at(1).
OPTIONS -l Specifies a limiting load factor, over which batch jobs should not be run, instead of the compile-time choice of 1.5. For an SMP
system with n CPUs, you will probably want to set this higher than n-1.
-b Specify the minimum interval in seconds between the start of two batch jobs (60 default).
-d Debug; print error messages to standard error instead of using syslog(3). This option also implies -f.
-f Run atd in the foreground.
-s Process the at/batch queue only once. This is primarily of use for compatibility with old versions of at; atd -s is equivalent to
the old atrun command. A script invoking atd -s is installed as /usr/sbin/atrun for backward compatibility.
WARNING
atd won't work if its spool directory is mounted via NFS even if no_root_squash is set.
FILES
/var/spool/cron/atjobs The directory for storing jobs; this should be mode 700, owner daemon.
/var/spool/cron/atspool The directory for storing output; this should be mode 700, owner daemon.
/etc/at.allow, /etc/at.deny determine who can use the at system.
SEE ALSO at(1), atrun(1), cron(8), crontab(1), syslog(3), at.deny(5), at.allow(5).
BUGS
The functionality of atd should be merged into cron(8).
2009-11-14 ATD(8)