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
Running scripts from home mastachef UNIX for Dummies Questions & Answers 2 12-07-2007 06:51 PM
Running shell scripts automatically without using Batch or at commands ritzwan0 Shell Programming and Scripting 3 09-17-2006 02:51 PM
Scripts for calculating size and remaining space of a directory automatically. leonall Shell Programming and Scripting 1 12-13-2005 02:30 PM
Running a program automatically jvadn0 Shell Programming and Scripting 3 03-12-2002 04:38 AM
How to run three scripts one after another automatically??? arunava_maity UNIX for Dummies Questions & Answers 3 05-04-2001 08:46 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 11-01-2006
jeffreydavisjr jeffreydavisjr is offline
Registered User
  
 

Join Date: May 2006
Posts: 14
Automatically Running Scripts

Can someone advise me how to get started automatically running scripts? I believe it has something to do with cron?
  #2 (permalink)  
Old 11-01-2006
nonkey nonkey is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 6
Quote:
Originally Posted by jeffreydavisjr
Can someone advise me how to get started automatically running scripts? I believe it has something to do with cron?
cron is designed for periodically scheduling
init (/etc/init.d/) for automatically starting scripts during system startup, depends on what you want (console, GUI... system's run level)

what do you want?

--
Vladimir
Nothing but Unix
http://unix-news.blogspot.com/
  #3 (permalink)  
Old 11-01-2006
jeffreydavisjr jeffreydavisjr is offline
Registered User
  
 

Join Date: May 2006
Posts: 14
Quote:
Originally Posted by nonkey

what do you want?

--
Vladimir
Nothing but Unix
http://unix-news.blogspot.com/
Well I have some scripts that I run manually everyday. I was wondering if it was possible to get these scripts to automatically run at say 4:30am every mourning.

I am using UNIX Sco 5.0.6. Thanks.
  #4 (permalink)  
Old 11-01-2006
nonkey nonkey is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 6
Quote:
Originally Posted by jeffreydavisjr
Well I have some scripts that I run manually everyday. I was wondering if it was possible to get these scripts to automatically run at say 4:30am every mourning.

I am using UNIX Sco 5.0.6. Thanks.
Usually /etc/crontab file contains configuration for cron daemon, which schedule scripts or programs according to it.

To automate running scripts at 4:30am every day you must write string to crontab file something like:

30 4 * * * * user /home/user/script.sh

First column - minutes, second - hours (24-h format)

You can setup any time to within 1 minute (if you need seconds - you can run 'sleep' or so at the script).


--
Vladimir
Nothing but Unix
http://unix-news.blogspot.com/
  #5 (permalink)  
Old 11-19-2008
atinsood atinsood is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 1
Executing scripts when unix is restarted

Vladimir

can you please tell me how to execute a script as soon as unix is booted.

I think crontab won't be helpful in this scenario.

Regards
Atin Sood
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 10:42 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