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 > 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
timer interrupt compbug UNIX for Dummies Questions & Answers 2 06-30-2006 03:41 PM
Timer for VNC foweja UNIX for Advanced & Expert Users 1 07-14-2005 10:31 AM
VNC Timer foweja Shell Programming and Scripting 0 07-13-2005 12:25 PM
timer k_oops9 Shell Programming and Scripting 3 11-08-2004 11:33 AM
reply timer Optimus_P Post Here to Contact Site Administrators and Moderators 2 07-31-2001 09:50 AM

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 07-20-2006
aekaramg20 aekaramg20 is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 9
Cool Timer

Is there a way to make a timer?
E.g Please give the seconds...
...
  #2 (permalink)  
Old 07-20-2006
Glenn Arndt's Avatar
Glenn Arndt Glenn Arndt is offline Forum Advisor  
Anomalous Lurker
  
 

Join Date: Feb 2006
Location: Indianapolis, IN
Posts: 255
You should probably provide more information. Do you want to time something specific like a script? What do you want the timer to do?
  #3 (permalink)  
Old 07-20-2006
aekaramg20 aekaramg20 is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 9
i want the user to give a parameter in seconds and every x seconds to check for any logins or logouts.if you have a better way to do this it is acceptable.
thanks
  #4 (permalink)  
Old 07-20-2006
Glenn Arndt's Avatar
Glenn Arndt Glenn Arndt is offline Forum Advisor  
Anomalous Lurker
  
 

Join Date: Feb 2006
Location: Indianapolis, IN
Posts: 255
Removed some unnecessary code

This might help -- it prints "Hello." every X seconds. Ctrl-C to stop.

sayhello.sh:

Code:
#!/bin/ksh

print -n "Enter seconds: "
read seconds
while :; do
  print "Hello."
  sleep $seconds
done
  #5 (permalink)  
Old 07-20-2006
aekaramg20 aekaramg20 is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 9
Anything for tcsh.thanks again
  #6 (permalink)  
Old 07-20-2006
Glenn Arndt's Avatar
Glenn Arndt Glenn Arndt is offline Forum Advisor  
Anomalous Lurker
  
 

Join Date: Feb 2006
Location: Indianapolis, IN
Posts: 255
Sorry, tcsh is not my bag. Someone else will need to help you with that.
  #7 (permalink)  
Old 08-21-2008
zawmn83 zawmn83 is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 3
I have a script that execute every one minute for checking new files in a folder and converting to pdf.
Is there any way to start this script automatically on linux startup?
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 04:57 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