The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem with scheduling a shell script on cygwin using cron shash UNIX for Dummies Questions & Answers 4 08-09-2007 03:08 PM
problem when the script is scheduled to run as cron job forumthreads UNIX for Dummies Questions & Answers 6 07-19-2007 09:27 AM
script execute by cron problem, but manual ok izai Shell Programming and Scripting 6 06-01-2007 02:45 AM
problem with a script and the cron pascalbout AIX 1 10-13-2005 06:42 AM
cron job problem with csh script fung_donald Shell Programming and Scripting 3 04-11-2002 07:15 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-14-2005
Registered User
 

Join Date: Aug 2005
Posts: 2
CRON problem using script...

Hi!

I just write a simple script to kill-restart a process, but when I use CRON to run it, it runs fine for about 1 minute (kill the process and restart it)... then the new process just dissapears!. 5 minutes later (cron prog time) and it does again... up process the disspaear ...

This is the script

#!/bin/sh
pkill -9 -f process_name
/opt/file_to_be_executed

and CRON entry:

5,10,15,20,25,30,35,40,45,50,55 * * * * /opt/script.sh

(I cant use */5 format, with no reason... :P)
Reply With Quote
Google UNIX.COM
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0