The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
why the below script is not working ., konankir Shell Programming and Scripting 14 03-27-2008 04:32 PM
Shell Implementation not working correctly AirBronto High Level Programming 14 02-15-2008 10:41 PM
Script not running correctly phixsius Shell Programming and Scripting 1 01-25-2008 06:42 AM
Variable not working correctly. walsh_j Shell Programming and Scripting 3 05-30-2007 02:50 PM
if not working correctly 2dumb Shell Programming and Scripting 3 05-03-2007 02:38 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-11-2002
elchalateco elchalateco is offline
Registered User
  
 

Join Date: Sep 2002
Posts: 11
Script not working correctly

I have a simple script that I want to run every 30 minutes but only when I execute it. I don't want it to be a crontab job.

so i have for example

date
ls -l
who
sleep 1800

The first time it executes correctly but after the first time it nevers execute back again. It should execute after 30 minutes again.

Why?
What Am I doing wrong?

Thanks
  #2 (permalink)  
Old 10-11-2002
biker biker is offline
Registered User
  
 

Join Date: Sep 2002
Location: Austin, TX
Posts: 41
elchalateco,

You will need to add a loop construct to your script.


Biker
Systems/Network Administrator
LiveFire Labs - Hands-On Technical e-Learning
www.LiveFireLabs.com
  #3 (permalink)  
Old 10-11-2002
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Something like. Do a search for the "while loop". This will go until you kill it. Endless loop with "while true" test.

while true
do
command
command
command
done

Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0