Sir,
I using the following commands in a file (part of a bigger script):
#!/bin/bash
cd /opt/oracle/bin
ls -lt | tail -1 | awk '{print $6}' >> /tmp/ramb.out
If I run this from the command prompt the result is:
2007-05-16
if I run it as a cron job then... (5 Replies)
Hi, how can i use unix shell command to get the autosys commands
for a set of given jobs?
autorep -J EMP% -w
returns all autosys jobnames starting with EMP and runtimes
However, i also want to see the autosys 'command' corresponding to the above jobs.
I don't want to sql query the... (1 Reply)
Hi there,
my problem is, that i need to get all jobs with status from a autosys instance.
If I use
autorep -J ALL -d >joblist.txt
longer Jobnames will be cut and the end will be replaced by 3 points like this
"ThisIsALongerJobNameAnd..."
If i try a single job query like
... (7 Replies)
hi,
i have autosys installed on unix.
i use "autorep -j t8i%" command to see the scheduled jobs. now i have changed some of the jobs and saved them too.
i gave the command jil< filename.jil to again insert the jobs. but my problem is what is the command to run all the jobs again so that i... (8 Replies)
I have created UNIX script for getting information for the autosys jobs using autorep command.
Job_name=temp_job1
echo $Job_name
autorep -j $job_name -l0
After running the script I am getting the below error
Error while loading shared libraries: libautoeac_api.so: cannot share object... (1 Reply)
Hi,
How to get correct field/column from autosys autorep command. I'm using GNU/Linux
I'm trying to get the difference of last end and last start and the status (ST).
In awk, i get the following excluding the heading part
$1 - jobname
$2 - Last Start date
$3 - Last Start time
$4 - Last... (1 Reply)
Hi,
I have written a ksh script and I'ma using the following command in it:
autorep -j %abcd% | grep RU | grep BOX1
The script works fine when executed manualy on the command prompt. But does not work when scheduled in crontab. I could see the following in the crontab log:
... (1 Reply)
Hello Experts,
I am still learning linux and have come across a question, hope to get some answer.
I have two servers, and both have the same version of svn client installed and both have the same user_id.
my SVN client version:
svn, version 1.6.11 (r934486)
compiled Mar 2 2011,... (4 Replies)
Hi everyone
I have a problem with my script
If I try directly this command
/usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz
It works
But if I simply add this command in a script and... (8 Replies)
Discussion started by: picemma
8 Replies
LEARN ABOUT REDHAT
postlock
POSTLOCK(1) General Commands Manual POSTLOCK(1)NAME
postlock - lock mail folder and execute command
SYNOPSIS
postlock [-c config_dir] [-l lock_style] [-v] file command...
DESCRIPTION
The postlock command locks file for exclusive access, and executes command. The locking method is compatible with the Postfix UNIX-style
local delivery agent.
Options:
-c config_dir
Read the main.cf configuration file in the named directory instead of the default configuration directory.
-l lock_style
Override the locking method specified via the mailbox_delivery_lock configuration parameter (see below).
-v Enable verbose logging for debugging purposes. Multiple -v options make the software increasingly verbose.
Arguments:
file A mailbox file. The user should have read/write permission.
command...
The command to execute while file is locked for exclusive access. The command is executed directly, i.e. without interpretation by
a shell command interpreter.
DIAGNOSTICS
The result status is 75 (EX_TEMPFAIL) when postlock could not perform the requested operation. Otherwise, the exit status is the exit sta-
tus from the command.
BUGS
With remote file systems, the ability to acquire a lock does not necessarily eliminate access conflicts. Avoid file access by processes
running on different machines.
ENVIRONMENT
MAIL_CONFIG
Directory with Postfix configuration files.
MAIL_VERBOSE
Enable verbose logging for debugging purposes.
CONFIGURATION PARAMETERS
The following main.cf parameters are especially relevant to this program. See the Postfix main.cf file for syntax details and for default
values.
Locking controls
deliver_lock_attempts
Limit the number of attempts to acquire an exclusive lock.
deliver_lock_delay
Time in seconds between successive attempts to acquire an exclusive lock.
stale_lock_time
Limit the time after which a stale lock is removed.
mailbox_delivery_lock
What file locking method(s) to use when delivering to a UNIX-style mailbox. The default setting is system dependent. For a list of
available file locking methods, use the postconf -l command.
Resource controls
fork_attempts
Number of attempts to fork() a process before giving up.
fork_delay
Delay in seconds between successive fork() attempts.
LICENSE
The Secure Mailer license must be distributed with this software.
AUTHOR(S)
Wietse Venema
IBM T.J. Watson Research
P.O. Box 704
Yorktown Heights, NY 10598, USA
POSTLOCK(1)