09-09-2014
Hi All- Thanku Ravinder/Gull for the useful posts.
I do not have root access
10 More Discussions You Might Find Interesting
1. SuSE
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)
Discussion started by: rajranibl
5 Replies
2. Shell Programming and Scripting
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
3. HP-UX
Up until now I used Oracle's Enterprise manager to submit the batch job. However its SMTP function (Sends EMail about Job status) is unstable lately. I want to use Unix's Cron to submit my batch job. This way I can also eliminate the middle layer (Oracle's Enterprise manager). Please help how I can... (1 Reply)
Discussion started by: aixhp
1 Replies
4. Shell Programming and Scripting
Hi Experts,
Is there any command by which i can chk that the cron process is running fine? Say i have scheduled the cron to run at 10 o clock every monday,Do i need to wait for the time it runs and then chk using ps -ef?
Please shed some light.
Thanks
Ashok. (2 Replies)
Discussion started by: Ashok_oct22
2 Replies
5. UNIX for Dummies Questions & Answers
I would like to setup a cron job to run a command from another directory.
What is the best way to do this?
The cron file is in a directory and the script I want it to run is in another directory.
I tried doing this in the cron file:
/location/of/command/run.sh
But that did not work.... (2 Replies)
Discussion started by: Sepia
2 Replies
6. Shell Programming and Scripting
HI,
I have a problem with 'sar' command.
I am using the sar comman in script.when i execute the script manually using ./filenae, i am getting the desired output.
But when i put the script in cron job i am not getting the desired value.
Below is the script..
sar > $_LOCATION/sar.txt... (2 Replies)
Discussion started by: ahamed
2 Replies
7. Shell Programming and Scripting
Hi, I have a simple script. When I run it as cron job. I jot email saying:
/bin/sh: line 1: test.tmp: command not found.
the test.tmp looks like:
#!/bin/sh
date > done
Even I took first line out, I got the same error.
The current shell I have is /bin/tcsh
Could anyone help me... (2 Replies)
Discussion started by: natxie
2 Replies
8. Shell Programming and Scripting
Hi
I have one problem with cron job in Control Panel.
I have a log file that is created once a day on another server and I need to transfer it in an exact time to my server so I wrote the cron job for it BUT the problem is in the date command:
/filelog-`date +%Y-%m-%d`.tar.gz;
The file... (1 Reply)
Discussion started by: bobo_balde
1 Replies
9. Shell Programming and Scripting
Unix box: solaris 5.8
Server: IP
Need to to set trap for cron job failures by writing a shell script (5 Replies)
Discussion started by: ChandruBala73
5 Replies
10. Shell Programming and Scripting
Hi,
I created this cron job for asterisk to send sms daily to a number
#!/bin/sh
#custom mod - send sms once a day, at 07:00.
CRON_PATH="/etc/asterisk/gw/crontabs_root";
if ! grep 'gsm send sms' $CRON_PATH > /dev/null 2>&1 ;then
echo "* 7 * * * asterisk -rx 'gsm send sms 1 7666... (4 Replies)
Discussion started by: jazzyzha
4 Replies
LEARN ABOUT LINUX
kitpost
KITSEND(1) General Commands Manual KITSEND(1)
NAME
kitpost - posts distribution kits
SYNOPSIS
kitpost [ -hrV ] [ -H file ] [ -D desc ] [ -m dest1,dest2 ] [ kits ] [ newsgroups ]
DESCRIPTION
Kitpost posts distribution kits made by makedist to some (source) newsgroups specified on the command line. If you do not specify any kit
list, then all the kits are sent. Otherwise, only the specified kits will be (re)sent.
A kit list may include ranges, 1-10 specifying kits 1 through 10, and 5- meaning kits 5 up to the last one. You may also specify kit num-
bers by separating them with commas or spaces, and even mix with ranges, such as: 1 3 5-7 9.
Kitpost ensures correct References: lines are inserted in your postings so that all parts but the first point to the root article. Threaded
newsreaders and end-users traditionally appreciate that.
OPTIONS
The following options are recognized by kitpost:
-h Print help message and exit.
-m dest1,destn
Sends kits by e-mail to the specified recipients. This option may be used in conjunction with newsgroup posting. It is mainly
intended for sites where direct posting to a moderated newsgroup is not allowed by inews. You may thus send your kits to the
newsgroup moderator in a form that will ease the whole posting process.
-r Signals a repost.
-D description
Specify a description string that will be added to the subject line. Usually a brief sentence (less than, say, 40 characters).
-H file Specify a file to be used as header introduction in the first part of your posting. Usually the root README file.
-V Print version number and exit.
BUGS
Article cross-referencing is properly set-up only when the whole package is (re)posted in one batch.
It is not currently possible to set-up the article headers manually or better, interactively.
AUTHOR
Raphael Manfredi <ram@hptnos02.grenoble.hp.com>
SEE ALSO
makedist(1), kitsend(1).
ram KITSEND(1)