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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
school unix shanepowell OS X (Apple) 6 06-27-2005 07:38 AM
Need help with OLD SCHOOL AIX NOTORIOUS VR AIX 3 02-23-2005 01:16 PM
school or teach myself? nobody High Level Programming 9 12-23-2003 07:41 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-12-2006
AtomJ22 AtomJ22 is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 4
Arrow Help with school homework

ok its a simple script, but i can't get it to run right. i'm totally lost. can anyone help me with this.

heres the question........create a shell script called minute.bash that starts the command
labs/bash/count.sh and lets it run for 1 minute and then stops it.

count.sh is a simple counting program that outputs 1,2,3,4,5,6 up to 10 and starts over.

this is what i'm typing in Vi

#!/bin/bash

#uses count.sh and lets it run for one minute.
#written by Adam Jones



/labs/bash/count.sh

sleep 60;

done


thats what i'm typing. the program just keeps on counting and never stops. if i put sleep above the count.sh it doesn't start for 1 minute. any help would be awesome. thankssss in advance.
  #2 (permalink)  
Old 04-12-2006
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
I can help in directing you to the rules. Homework questions are not permitted.

Thanks
ZB
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 08:20 PM.


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